{"answers":{"affected":"3 open source packages ship an affected version, including guardrails-ai.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6961 exists.","fix":"Upgrade guardrails-ai to 0.5.0 or later.","what":"CVE-2024-6961 is a medium-severity vulnerability in guardrails-ai, published on 21 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6961 and fix it if it is affected.\n\nWhat it is: CVE-2024-6961 is a medium-severity vulnerability in guardrails-ai, published on 21 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6961 exists.\n\nAffected packages and fixed versions:\n- guardrails-ai (PyPI): affected all versions; fixed in 0.5.0\n- guardrails-ai (PyPI): affected all versions; fixed in 0.5.0\n- guardrails-ai (PyPI): affected all versions; fixed in 0.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6961/ (Markdown: https://insights.sbomify.com/CVE-2024-6961/index.md)","id":"CVE-2024-6961","markdown":"https://insights.sbomify.com/CVE-2024-6961/index.md","name":"CVE-2024-6961","record":{"aliases":["GHSA-f8hx-f4xw-c646","PYSEC-2026-1431"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Guardrails AI library","requires_auth":"none","summary":"Attackers can leak internal file data by exploiting XML External Entity vulnerabilities in Guardrails AI when processing external RAIL documents.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"JFROG","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"RAIL documents are an XML-based format invented by Guardrails AI to enforce formatting checks on LLM outputs. Guardrails users that consume RAIL documents from external sources are vulnerable to XXE, which may cause leakage of internal file data via the SYSTEM entity.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"XXE in Guardrails AI when consuming RAIL documents","id":"CVE-2024-6961","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xxe","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Tenda O3 formQosSet stack-based overflow","id":"CVE-2024-6962"},"packages":[{"ecosystem":"PyPI","fixed":["0.5.0"],"introduced":["0"],"last_affected":[],"package":"guardrails-ai","purl":null,"source":"GHSA-f8hx-f4xw-c646"},{"ecosystem":"PyPI","fixed":["0.5.0"],"introduced":["0"],"last_affected":[],"package":"guardrails-ai","purl":"pkg:pypi/guardrails-ai","source":"GHSA-f8hx-f4xw-c646"},{"ecosystem":"PyPI","fixed":["0.5.0"],"introduced":["0"],"last_affected":[],"package":"guardrails-ai","purl":"pkg:pypi/guardrails-ai","source":"PYSEC-2026-1431"}],"prev":{"headline":"H2O deserializes ML models without filtering, potentially allowing execution of malicious code","id":"CVE-2024-6960"},"products":[],"published":"2024-07-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-25","vendors":[]},"summary":"Attackers can leak internal file data by exploiting XML External Entity vulnerabilities in Guardrails AI when processing external RAIL documents.","url":"https://insights.sbomify.com/CVE-2024-6961/"}