SecurityContext

CVE-2026-41488: LangChain langchain-openai - Server Side Request Forgery

  • Cve: CVE-2026-41488
  • Name: LangChain langchain-openai - Server Side Request Forgery
  • Description: 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.
  • Impact: Attackers can access internal or localhost network resources, potentially exposing sensitive internal services or data.
  • Remediation: Upgrade to version 1.1.14 or later.
  • Vulnerability type: server_side_request_forgery
  • Vulnerability impact: server_side_request_forgery, dns_rebinding
  • Requirements: Attacker needs to control hostname DNS resolution
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 3.1
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
  • Epss score: 0.00164
  • Epss percentile: 0.05515
  • Assignee: [email protected]
  • Published at: 2026-04-24T21:16:19Z
  • Age in days: 214
  • Modified at: 2026-10-26T21:10:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-41488
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type

Cwe

IdName
CWE-918Server-Side Request Forgery

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2rnvdMitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
langchain:langchain-openai< 1.1.14nonvd/v1/products/langchain/langchain-openai

Projects

RepositoryLink kindsIndexedUrl
langchain-ai/langchainpackage, security_advisoryyes/v1/repositories/langchain-ai/langchain

Index

  • Repositories: 457
  • Repositories high signal: 264
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts