CVE REMEDIATION GUIDE
Review reviewHighFixed-version data available

CVE-2026-34070 remediation guide

langchain-ai langchain, Red Hat Ansible Automation Platform 2.5, Red Hat OpenShift AI 3.3

LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config dicts without validating against directory traversal or absolute path injection. When an application passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for templates, .json/.yaml for examples). This issue has been patched in version 1.2.22.

Open CVE record
Productlangchain-ai langchain, Red Hat Ansible Automation Platform 2.5, Red Hat OpenShift AI 3.3
Affected versions>= < 1.2.22, < 1.2.22
Fixed versions1.2.22
Priority basisReview · CVSS 7.5 · EPSS 1.20%
01

Identify the affected asset

Confirm whether langchain-ai langchain, Red Hat Ansible Automation Platform 2.5, Red Hat OpenShift AI 3.3 is installed, record the deployed version and installation path, and identify exposed interfaces.

  • Record the product name, package or appliance identifier, and installed version.
  • Identify internet-facing, administrative, API, and internal access paths.
  • Preserve the pre-change configuration and relevant service logs.
02

Validate the affected-version match

Compare the deployed version with the affected range: >= < 1.2.22, < 1.2.22. Treat incomplete inventory results as unresolved.

03

Prioritize with independent signals

The CVSS severity warrants an early asset and exposure review. Combine this signal with asset criticality, exposure, compensating controls, and business impact.

04

Apply supported remediation

Follow the vendor advisory or supported update path. Current fixed-version status: 1.2.22. Preserve configuration and rollback material before change.

05

Verify the result

Confirm the resulting version, service health, authentication and access paths, monitoring coverage, and relevant security logs.

  • Confirm the expected version and package state.
  • Run a functional health check for critical service paths.
  • Review authentication, error, application, and security monitoring logs.
  • Reassess exposure if the supported fix cannot be applied.

Operational boundary

This page does not replace the vendor advisory, support contract, change-management process, or recovery plan. Do not infer that an asset is unaffected from an incomplete inventory query or a missing fixed-version field.

CVE-2026-34070 Remediation Guide | SECUFOCUS NOW