LangChain: Security First - Path Validation and Core Updates

The LangChain team shipped some important security improvements today with path validation for prompt loading and saving operations. ccurme led the charge with a substantial security fix that adds validation to prevent potentially dangerous file paths, while also cleaning up the API by deprecating older methods. The team also released LangChain Core version 1.2.22 and made some housekeeping updates to the OpenRouter integration.

Duration: PT3M43S

Episode overview

This episode is a short developer briefing from LangChain.

It explains recent repository work in plain language.

  • Show: LangChain
  • Published: 2026-03-25T10:05:06Z
  • Audio duration: PT3M43S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Hey there, fellow builders! Welcome back to another episode of the LangChain podcast. I'm your host, and wow, do we have some really thoughtful updates to dive into today. Grab your favorite beverage because we're talking about something that doesn't always get the spotlight it deserves - security improvements that…

So let's jump right into the big story of the day. Our friend ccurme just merged a really solid security enhancement that's all about protecting you when you're working with prompt files. Now, if you've been using LangChain's prompt loading and saving features, this one's definitely worth your attention.

Here's the deal - you know how you can save and load prompts from files? Well, the team realized there was a potential security issue where someone could potentially use absolute paths or those sneaky dot-dot slash combinations to access files they shouldn't. Think about it - if your application is loading prompts…

So ccurme stepped up with a comprehensive fix that validates all those input paths. The solution is really elegant - by default, the system now rejects absolute paths and any path components that try to climb up the directory tree with those double dots. But…

Bu…

Nearby episodes from LangChain

  1. Silent Bugs Squashed & Future-Proofing Python 3.14
  2. Spring Cleaning and Python 3.14 Prep
  3. Smarter Search Defaults with Exa
  4. OpenRouter Goes Marketplace with Smart Attribution
  5. Dependency Harmony & Workflow Fixes
  6. Model Profiles Get a Schema Stability Boost
  7. Making Maintainer Life Easier
  8. Streaming Bugs Squashed