Lookup for vulnerable packages by Package URL.
| Purl | pkg:npm/%40langchain/core@0.3.0 |
| Type | npm |
| Namespace | @langchain |
| Name | core |
| Version | 0.3.0 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 0.3.80 |
| Latest_non_vulnerable_version | 1.1.8 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-hzdw-2jub-d3hg |
| vulnerability_id |
VCID-hzdw-2jub-d3hg |
| summary |
LangChain serialization injection vulnerability enables secret extraction
Attackers who control serialized data can extract environment variable secrets by injecting `{"lc": 1, "type": "secret", "id": ["ENV_VAR"]}` to load environment variables during deserialization (when `secretsFromEnv: true`). They can also instantiate classes with controlled parameters by injecting constructor structures to instantiate any class within the provided import maps with attacker-controlled parameters, potentially triggering side effects such as network calls or file operations.
Key severity factors:
- Affects the serialization path—applications trusting their own serialization output are vulnerable
- Enables secret extraction when combined with `secretsFromEnv: true`
- LLM responses in `additional_kwargs` can be controlled via prompt injection |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-68665, GHSA-r399-636x-v7f6
|
| risk_score |
4.0 |
| exploitability |
0.5 |
| weighted_severity |
8.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-hzdw-2jub-d3hg |
|
|
| Fixing_vulnerabilities |
|
| Risk_score | 4.0 |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:npm/%2540langchain/core@0.3.0 |