HighVulnerability
GHSA-pw95-88fg-3j6f: Langroid Allows XXE Injection via XMLToolMessage
- Identifiers
- CVE-2025-46726GHSA-pw95-88fg-3j6f
- Published
- Record updated
- Affected
- langroid < 0.53.4
- Fixed in
- 0.53.4
- released May 2, 2025, 2 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%
Summary
Langroid's XMLToolMessage class parses untrusted XML with lxml and no safeguards, so an LLM application using it can be exposed to denial of service through quadratic blowup payloads and to disclosure of local files through external entity declarations, which lxml processes by default. The advisory includes a proof-of-concept nested-entity payload that expands exponentially and can crash the application.
Mitigation
Fixed in Langroid 0.53.4, which initializes XMLParser with flags that disable entity resolution, DTD loading, and network access to prevent XXE, billion laughs, and external DTD attacks.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langroidPyPILLM dependency since 2023-07-14
Related items
- MediumCVE-2026-136641: Pydantic AI Harness PlaywrightBrowser egress policy bypass via WebRTCSimilar attack · NVD/CVE Database
- MediumCVE-2026-136146: vanna-ai vanna deserialization flaw in FAISS AgentMemory _load_indexSimilar attack · NVD/CVE Database
- MediumCVE-2026-132260: AutoGPT E2B code-execution blocks leave sandboxes running on shared credentialSimilar attack · NVD/CVE Database
- HighCVE-2026-136539: LiteLLM code injection via pass-through endpointsSimilar attack · NVD/CVE Database
- HighCVE-2026-136538: LiteLLM privilege escalation through virtual key model aliasesSimilar attack · NVD/CVE Database