Security mailing lists by PureSourceCode

CVE-2026-41488

LOW 3.1CVSS 3.1

langchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding

LangChain is a framework for building agents and LLM-powered applications. Prior to 1.1.14, langchain-openai's _url_to_size() helper (used by get_num_tokens_from_messages for image token counting) validated URLs for SSRF protection and then fetched them in a separate network operation with independent DNS resolution. This left a TOCTOU / DNS rebinding window: an attacker-controlled hostname could resolve to a public IP during validation and then to a private/localhost IP during the actual fetch.

Published
24 Apr 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-918
Also known as
GHSA-r7w7-9xr2-qq2rPYSEC-2026-76
Sources
NVDJSONOSV GHSA-r7w7-9xr2-qq2rJSONOSV PYSEC-2026-76JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 LOW 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 LOW 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
OSV PyPA CVSS 3.1 LOW 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD langchain langchain-openai
cpe:2.3:a:langchain:langchain-openai:*:*:*:*:*:*:*:*
< 1.1.14 1.1.14
OSV PyPI langchain-openai < 1.1.14 1.1.14

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Apr 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.