{"schemaVersion":3,"id":"CVE-2023-32786","aliases":["GHSA-6h8p-4hx9-w66c","PYSEC-2026-1508"],"status":"published","duplicateOf":null,"title":null,"description":"In Langchain through 0.0.155, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.","dates":{"published":"2023-10-20T00:00:00.000Z","modified":"2024-09-12T17:54:54.643Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00709,"percentile":0.52891,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.010000000000000026,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00699},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00709,"percentile":0.52891}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00699,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00709,"percentile":0.52891}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","description":"The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/74.html"}],"affected":[{"vendor":"langchain","product":"langchain","name":"langchain","label":"langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.0.155","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.0.155","eol":null,"hubHref":"/vendor/langchain/langchain"},{"vendor":"PyPI","product":"langchain","name":"langchain","label":"langchain","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain","purlType":"pypi","versions":[{"text":"< 0.0.329","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.329","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://gist.github.com/rharang/d265f46fc3161b31ac2e81db44d662e1","label":"gist.github.com/rharang/d265f46fc3161b31ac2e81db44d662e1","hostname":"gist.github.com","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32786","label":"nvd.nist.gov/vuln/detail/CVE-2023-32786","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langchain/pull/12747","label":"github.com/langchain-ai/langchain/pull/12747","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/langchain-ai/langchain","label":"github.com/langchain-ai/langchain","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/v0.0.329","label":"github.com/langchain-ai/langchain/releases/tag/v0.0.329","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/langchain","label":"pypi.org/project/langchain","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-6h8p-4hx9-w66c","label":"github.com/advisories/GHSA-6h8p-4hx9-w66c","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-10-20T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-12T17:54:54.643Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:14:05.307Z","stale":false,"partial":false}}