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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Proof of concept
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.03% (percentile 63, 2026-11-26)
- **CWE:** CWE-611
- **Aliases:** GHSA-pw95-88fg-3j6f, PYSEC-2026-1532
- **Published:** 2025-05-05T19:21:19.597Z
- **Modified:** 2026-07-07T17:56:21.504Z

## Who should check

- Projects that depend on PyPI package langroid (\< 0.53.4)
- Anyone running langroid \< 0.53.4

## 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.

## Affected and fixed versions

- PyPI `langroid`: affected \< 0.53.4; fixed 0.53.4 (osv)
- langroid: \< 0.53.4 (cvelist)

## Mitigation

- Upgrade langroid to 0.53.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-46726. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-46726.md
Affected: langroid < 0.53.4
Fixed in: 0.53.4

Steps:
1. Search this machine and project for langroid (PyPI), langroid: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-46726 being exploited?

There is no confirmed exploitation: CVE-2025-46726 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-46726?

High: CVSS 7.8 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-46726?

langroid \< 0.53.4.

### Is there a fix for CVE-2025-46726?

Yes. Fixed in 0.53.4. Upgrade langroid to 0.53.4 or later.

### How do I check if I'm affected by CVE-2025-46726?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-46726>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pw95-88fg-3j6f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1532> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-46726> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-46726>
