Advisory

PYSEC-2026-373

Details, part 2 of 2. The advisory

Details

secrets_from_env now defaults to False. If you need to load secrets from environment variables:

 from langchain_core.load import load

obj = load(serialized_data, secrets_from_env=True)

Credits

  • Dumps bug was reported by @yardenporat
  • Changes for security hardening due to findings from @0xn3va and @VladimirEliTokarev

Sources & licences