# CVE-2025-46726: PYSEC-2026-1532 - Langroid Allows XXE Injection via XMLToolMessage

Source: https://junglewise.ai/threats/cve-2025-46726-langroid-allows-xxe-injection-via-xmltoolmessage  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2025-46726 · Severity: medium · CVSS 4 · Published 2026-07-07

Langroid Allows XXE Injection via XMLToolMessage

Technologies: [langroid (PyPI)](https://junglewise.ai/threats/technologies/langroid). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-46726 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-46726 being exploited in the wild.

**How severe is CVE-2025-46726?** Medium severity, with a CVSS score of 4, published 7 July 2026.

**Which products and versions are affected?** langroid (PyPI) ECOSYSTEM:introduced=0,fixed=0.53.4.

**Is there a fix for CVE-2025-46726?** Yes. langroid (PyPI): upgrade to 0.53.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-46726?** Check whether you run langroid (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- langroid (PyPI): upgrade to 0.53.4 or later

  ```sh
  pip install "langroid>=0.53.4"
  ```


## Affected products

- langroid (PyPI) ECOSYSTEM:introduced=0,fixed=0.53.4

## Identifiers

- CVE-2025-46726
- GHSA-pw95-88fg-3j6f
- PYSEC-2026-1532

## Related threats

- [Langroid prompt injection in Neo4jChatAgent and ArangoChatAgent](https://junglewise.ai/threats/cve-2026-55615-langroid-prompt-injection-in-neo4jchatagent-and-arangochatagent)
- [Langroid unauthorized tool invocation via raw JSON payloads](https://junglewise.ai/threats/cve-2026-54771-langroid-unauthorized-tool-invocation-via-raw-json-payloads)
- [Langroid sandbox escape and RCE in TableChatAgent and VectorStore](https://junglewise.ai/threats/cve-2026-54769-langroid-sandbox-escape-and-rce-in-tablechatagent-and-vectorstore)
- [Langroid SQLChatAgent regex bypass in SQL injection mitigation](https://junglewise.ai/threats/cve-2026-54760-langroid-sqlchatagent-regex-bypass-in-sql-injection-mitigation)
- [Langroid path traversal in ReadFileTool and WriteFileTool](https://junglewise.ai/threats/cve-2026-50181-langroid-path-traversal-in-readfiletool-and-writefiletool)
