{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.santuario:xmlsec. It affects 18 products.","exploited":"There is no known exploitation of CVE-2021-40690 in the wild and no public exploit code.","fix":"Upgrade org.apache.santuario:xmlsec to a fixed version for your release line: 2.1.7 or 2.2.3.","what":"CVE-2021-40690 is a high-severity vulnerability in Apache Cxf, published on 19 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-40690 and fix it if it is affected.\n\nWhat it is: CVE-2021-40690 is a high-severity vulnerability in Apache Cxf, published on 19 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-40690 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.santuario:xmlsec (Maven): affected all versions; fixed in 2.1.7\n- org.apache.santuario:xmlsec (Maven): affected all versions; fixed in 2.1.7\n- org.apache.santuario:xmlsec (Maven): affected from 2.2.0; fixed in 2.2.3\n- org.apache.santuario:xmlsec (Maven): affected from 2.2.0; fixed in 2.2.3\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-2021-40690/ (Markdown: https://insights.sbomify.com/CVE-2021-40690/index.md)","id":"CVE-2021-40690","markdown":"https://insights.sbomify.com/CVE-2021-40690/index.md","name":"CVE-2021-40690","record":{"aliases":["DEBIAN-CVE-2021-40690","DLA-2767-1","DSA-5010-1","GHSA-j8wc-gxx9-82hx","UBUNTU-CVE-2021-40690","USN-5525-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java XML Security Library","requires_auth":"none","summary":"An attacker can exploit an XPath Transform to extract local XML files due to improper handling of the secureValidation property in Apache Santuario.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"cxf","vendor":"apache"},{"product":"santuario_xml_security_for_java","vendor":"apache"},{"product":"tomee","vendor":"apache"},{"product":"debian_linux","vendor":"debian"},{"product":"agile_product_lifecycle_management","vendor":"oracle"},{"product":"commerce_guided_search","vendor":"oracle"},{"product":"commerce_platform","vendor":"oracle"},{"product":"communications_diameter_intelligence_hub","vendor":"oracle"},{"product":"communications_messaging_server","vendor":"oracle"},{"product":"flexcube_private_banking","vendor":"oracle"},{"product":"outside_in_technology","vendor":"oracle"},{"product":"peoplesoft_enterprise_peopletools","vendor":"oracle"},{"product":"retail_bulk_data_integration","vendor":"oracle"},{"product":"retail_financial_integration","vendor":"oracle"},{"product":"retail_integration_bus","vendor":"oracle"},{"product":"retail_merchandising_system","vendor":"oracle"},{"product":"retail_service_backbone","vendor":"oracle"},{"product":"weblogic_server","vendor":"oracle"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"All versions of Apache Santuario - XML Security for Java prior to 2.2.3 and 2.1.7 are vulnerable to an issue where the \"secureValidation\" property is not passed correctly when creating a KeyInfo from a KeyInfoReference element. This allows an attacker to abuse an XPath Transform to extract any local .xml files in a RetrievalMethod element.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Bypass of the secureValidation property","id":"CVE-2021-40690","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"apache:cxf","products":["apache:cxf","debian:debian_linux","oracle:agile_product_lifecycle_management","oracle:commerce_guided_search","oracle:flexcube_private_banking","oracle:outside_in_technology","oracle:peoplesoft_enterprise_peopletools","oracle:retail_merchandising_system","oracle:weblogic_server"],"type":"xxe","year":"2021"},"n_packages":4,"n_references":14,"next":{"headline":"Moodle Improper Authentication","id":"CVE-2021-40691"},"packages":[{"ecosystem":"Maven","fixed":["2.1.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.santuario:xmlsec","purl":null,"source":"GHSA-j8wc-gxx9-82hx"},{"ecosystem":"Maven","fixed":["2.1.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.santuario:xmlsec","purl":"pkg:maven/org.apache.santuario/xmlsec","source":"GHSA-j8wc-gxx9-82hx"},{"ecosystem":"Maven","fixed":["2.2.3"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.santuario:xmlsec","purl":null,"source":"GHSA-j8wc-gxx9-82hx"},{"ecosystem":"Maven","fixed":["2.2.3"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.santuario:xmlsec","purl":"pkg:maven/org.apache.santuario/xmlsec","source":"GHSA-j8wc-gxx9-82hx"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2021-40684"},"products":["Apache Santuario"],"published":"2021-09-19","related":[{"cvss_score":10,"headline":"XML Signature/Encryption Not Validated in Apache CXF","id":"CVE-2012-2379","kev_date_added":null,"published":"2013-01-03"},{"cvss_score":9.8,"headline":"Apache CXF: Unsafe deserialization of inbound JMS ObjectMessage","id":"CVE-2026-66909","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":9.8,"headline":"Apache CXF: DefaultEncryptingCodeDataProvider allows unlimited authorization code replay","id":"CVE-2026-68079","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":9.8,"headline":"Apache CXF: OAuth2: Inverted IP Binding Check Defeats Security Control","id":"CVE-2026-50628","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":9.8,"headline":"Apache CXF: Untrusted JMS configuration can lead to RCE","id":"CVE-2025-48913","kev_date_added":null,"published":"2025-08-08"},{"cvss_score":9.8,"headline":"Apache CXF SSRF Vulnerability","id":"CVE-2022-46364","kev_date_added":null,"published":"2022-12-13"},{"cvss_score":9.8,"headline":"Potential session hijack in Apache CXF","id":"CVE-2019-12419","kev_date_added":null,"published":"2019-11-06"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["Apache Software Foundation"]},"summary":"An attacker can exploit an XPath Transform to extract local XML files due to improper handling of the secureValidation property in Apache Santuario.","url":"https://insights.sbomify.com/CVE-2021-40690/"}