# CVE-2025-46726: Langroid Vulnerable to XXE Injection via XMLToolMessage

- Severity: High 7.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-05T19:21:19.597Z
- Modified: 2026-07-07T17:56:21.504Z
- Also known as: GHSA-pw95-88fg-3j6f, PYSEC-2026-1532
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- langroid langroid: < 0.53.4; before 0.53.4
- langroid (PyPI): before 0.53.4

## Every score

- GitHub_M: CVSS:4.0 7.8 High `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: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- PyPA Advisory Database: 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`

## References

- <https://github.com/langroid/langroid/security/advisories/GHSA-pw95-88fg-3j6f> (exploit, vendor-advisory, web)
- <https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3> (patch, web)
- <https://github.com/langroid/langroid/blob/df6227e6c079ec22bb2768498423148d6685acff/langroid/agent/xml_tool_message.py#L51-L52> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46726> (advisory)
- <https://github.com/langroid/langroid> (package)
- <https://pypi.org/project/langroid> (package)
- <https://github.com/advisories/GHSA-pw95-88fg-3j6f> (advisory)

## Sources

- CVE List: [CVE-2025-46726](https://www.cve.org/CVERecord?id=CVE-2025-46726), CVE Terms of Use, modified 2025-05-05
- GitHub Advisory Database: [GHSA-pw95-88fg-3j6f](https://github.com/advisories/GHSA-pw95-88fg-3j6f), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-46726](https://nvd.nist.gov/vuln/detail/CVE-2025-46726), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1532](https://osv.dev/vulnerability/PYSEC-2026-1532), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-46726 · Whole record: https://cve.day/CVE-2025-46726.json · Rebuilt by cve.day 2026-11-25T22:58:57.606Z
