CVE Explorer
CVE-2025-9556
Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3.
Gonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the "etc/passwd" file.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"Langchaingo","vendor":"Langchaingo","versions":[{"status":"affected","version":"0.1.14"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:31d7e5465296048381805347c1743ded38f51cc38acc1aeb1ee90b780e669c06 · sha256:eea1241e4e5abe6f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:31d7e5465296048381805347c1743ded38f51cc38acc1aeb1ee90b780e669c06 · sha256:eea1241e4e5abe6f… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"description":"CWE-200 Exposure of Sensitive Information to an Unauthorized Actor","lang":"en"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:31d7e5465296048381805347c1743ded38f51cc38acc1aeb1ee90b780e669c06 · sha256:eea1241e4e5abe6f… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"url":"https://github.com/tmc/langchaingo/pull/1348"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:31d7e5465296048381805347c1743ded38f51cc38acc1aeb1ee90b780e669c06 · sha256:eea1241e4e5abe6f… · /containers/cna/references/1
{"url":"https://github.com/tmc/langchaingo/security/advisories/GHSA-mgcj-g55g-rf6h"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:31d7e5465296048381805347c1743ded38f51cc38acc1aeb1ee90b780e669c06 · sha256:eea1241e4e5abe6f… · /containers/cna/references/0
{"url":"https://www.kb.cert.org/vuls/id/949137"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:31d7e5465296048381805347c1743ded38f51cc38acc1aeb1ee90b780e669c06 · sha256:eea1241e4e5abe6f… · /containers/adp/1/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.