{"id":"CVE-2025-46726","published":"2025-05-05T19:21:19Z","modified":"2025-05-05T20:07:01Z","title":"Langroid Vulnerable to XXE Injection via XMLToolMessage","vendor":"langroid","product":"langroid","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00659,"percentile":0.5248,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-pw95-88fg-3j6f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3","tags":["x_refsource_MISC"]},{"url":"https://github.com/langroid/langroid/blob/df6227e6c079ec22bb2768498423148d6685acff/langroid/agent/xml_tool_message.py#L51-L52","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":10.5},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"langroid","affectedVersions":[{"vendor":"langroid","product":"langroid","versions":["< 0.53.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-05T20:06:52.671922Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langroid","vulnerableRanges":["<0.53.4"],"patched":["0.53.4"],"from":["GHSA-pw95-88fg-3j6f","PYSEC-2026-1532"],"provenance":"source"}],"summary":{"text":"Langroid, a framework for building large-language-model-powered applications, contains an XML external entity (XXE) injection flaw in its XMLToolMessage class in versions before 0.53.4. An attacker able to supply XML input to an application that uses this class, over the network and without authentication or user interaction, can cause denial of service or read local files containing sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:09Z"},"euvd":{"id":"EUVD-2025-13410","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langroid-cve-2025-46726","children":[{"from":"CVE-2025-46726","to":"CVE-2025-46724","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langroid","fromFixed":"0.53.4","toFixed":"0.53.15","daysApart":15},{"kind":"same-code","provenance":"machine","files":["langroid/agent/special/table_chat_agent.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3"],"basis":"shared function","functions":["pandas_eval"]}]},{"from":"CVE-2025-46726","to":"CVE-2025-46725","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langroid","fromFixed":"0.53.4","toFixed":"0.53.15","daysApart":15},{"kind":"same-code","provenance":"machine","files":["langroid/agent/special/table_chat_agent.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3"],"basis":"shared function","functions":["pandas_eval"]}]}],"packageHistory":[{"cve":"CVE-2025-46726","published":"2025-05-05","fixed":"0.53.4","kev":false},{"cve":"CVE-2025-46724","published":"2025-05-20","fixed":"0.53.15","kev":false},{"cve":"CVE-2025-46725","published":"2025-05-20","fixed":"0.53.15","kev":false},{"cve":"CVE-2026-25481","published":"2026-02-04","fixed":"0.59.32","kev":false}],"package":"PyPI:langroid"}}