Home / langroid / langroid / CVE-2025-46726
CVE-2025-46726: is it exploited, and which versions of langroid are affected and fixed?
CVE-2025-46726 is a XML external entity (XXE) vulnerability in langroid. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: langroid before 0.53.4 (GitHub advisory GHSA-pw95-88fg-3j6f). Fixed in 0.53.4 (GitHub advisory GHSA-pw95-88fg-3j6f). Severity: High (7.8, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:20 UTC.
What is CVE-2025-46726?
Langroid Vulnerable to XXE Injection via XMLToolMessage
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.53.4, a LLM application leveraging `XMLToolMessage` class may be exposed to untrusted XML input that could result in DoS and/or exposing local files with sensitive information. Version 0.53.4 fixes the issue.
From the CVE record by GitHub_M, last updated May 5, 2025, 20:07 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| langroid | langroid | < 0.53.4 |
As the CVE record by GitHub_M states it, last updated May 5, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langroid | < 0.53.4 | 0.53.4 | GHSA-pw95-88fg-3j6f |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 5, 2025. Summary: Langroid Allows XXE Injection via XMLToolMessage.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| langroid | langroid | before 0.53.4 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 09:26 UTC.
How severe is CVE-2025-46726?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:P | GitHub_M |
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-46726 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, May 5, 2025)
- EPSS
- 0.67% probability of exploitation activity in the next 30 days, percentile 53.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-611 Improper Restriction of XML External Entity Reference
Where are the vendor advisories and references?
- https://github.com/langroid/langroid/security/advisories/GHSA-pw95-88fg-3j6f x_refsource_CONFIRM
- https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3 x_refsource_MISC
- https://github.com/langroid/langroid/blob/df6227e6c079ec22bb2768498423148d6685acff/langroid/agent/xml_tool_message.py#L51-L52 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 28, 2025
- Published
- May 5, 2025, 19:21 UTC
- CVE record updated
- May 5, 2025, 20:07 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 09:26 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:20 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect langroid?
- Jul 9, 2026CVE-2026-54771 langroid: failure to Sanitize Special Elements into a Different Plane
- Jul 9, 2026CVE-2026-54769 langroid: code injection (remote code execution)
- Jul 9, 2026CVE-2026-54760 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-50181 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-50180 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-55615 langroid: injection
- Jun 1, 2026CVE-2026-25879 langroid: SQL injection
- Feb 4, 2026CVE-2026-25481 langroid: code injection (remote code execution)
Questions about CVE-2025-46726
Is CVE-2025-46726 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.67% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of langroid are affected by CVE-2025-46726?
langroid before 0.53.4, per the GitHub advisory GHSA-pw95-88fg-3j6f. The tables above give every range the sources list.
Which version fixes CVE-2025-46726?
0.53.4, per the GitHub advisory GHSA-pw95-88fg-3j6f. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-46726?
High (7.8, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-46726?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.