{"answers":{"affected":"2 open source packages ship an affected version, including modsecurity and modsecurity2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54571 exists.","fix":"Upgrade modsecurity to 2.9.12 or later.","what":"CVE-2025-54571 is a medium-severity cross-site scripting vulnerability in owasp-modsecurity ModSecurity, published on 5 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54571 and fix it if it is affected.\n\nWhat it is: CVE-2025-54571 is a medium-severity cross-site scripting vulnerability in owasp-modsecurity ModSecurity, published on 5 Aug 2025. 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-2025-54571 exists.\n\nAffected packages and fixed versions:\n- modsecurity (Bitnami): affected all versions; fixed in 2.9.12\n- modsecurity2 (Bitnami): affected all versions; fixed in 2.9.12\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-2025-54571/ (Markdown: https://insights.sbomify.com/CVE-2025-54571/index.md)","id":"CVE-2025-54571","markdown":"https://insights.sbomify.com/CVE-2025-54571/index.md","name":"CVE-2025-54571","record":{"aliases":["AZL-66087","AZL-66111","BIT-modsecurity-2025-54571","BIT-modsecurity2-2025-54571","DEBIAN-CVE-2025-54571","DLA-4294-1","GHSA-cg44-9m43-3f9v","OESA-2025-2012","OESA-2025-2013","OESA-2025-2014","OESA-2025-2015","OESA-2025-2016","OESA-2025-2062","SUSE-SU-2025:03422-1","SUSE-SU-2025:03423-1","UBUNTU-CVE-2025-54571","openSUSE-SU-2025:15456-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Web Application Firewall","requires_auth":"none","summary":"Attackers can override HTTP Content-Type headers in ModSecurity, leading to Cross-Site Scripting and source code disclosure.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"modsecurity","vendor":"owasp"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-252","name":"Unchecked Return Value"}],"description":"ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. In versions 2.9.11\nand below, an attacker can override the HTTP response’s Content-Type, which could lead to several issues depending on the HTTP scenario. For example, we have demonstrated the potential for XSS and arbitrary script source code disclosure in the latest version of mod_security2. This issue is fixed in version 2.9.12.","ecosystems":["Bitnami","SUSE:Linux Enterprise Module for Server Applications 15 SP6","SUSE:Linux Enterprise Module for Server Applications 15 SP7","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure","id":"CVE-2025-54571","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":7,"n_references":3,"next":{"headline":"Ruby SAML DOS vulnerability with large SAML response","id":"CVE-2025-54572"},"packages":[{"ecosystem":"Bitnami","fixed":["2.9.12"],"introduced":["0"],"last_affected":[],"package":"modsecurity","purl":"pkg:bitnami/modsecurity","source":"BIT-modsecurity-2025-54571"},{"ecosystem":"Bitnami","fixed":["2.9.12"],"introduced":["0"],"last_affected":[],"package":"modsecurity2","purl":"pkg:bitnami/modsecurity2","source":"BIT-modsecurity2-2025-54571"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP6","fixed":["2.9.4-150400.3.12.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_security2","purl":"pkg:rpm/suse/apache2-mod_security2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP6","source":"SUSE-SU-2025:03422-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP7","fixed":["2.9.4-150400.3.12.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_security2","purl":"pkg:rpm/suse/apache2-mod_security2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP7","source":"SUSE-SU-2025:03422-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["2.8.0-7.12.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_security2","purl":"pkg:rpm/suse/apache2-mod_security2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:03423-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.9.4-150400.3.12.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_security2","purl":"pkg:rpm/opensuse/apache2-mod_security2\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:03422-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.9.12-1.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_security2","purl":"pkg:rpm/opensuse/apache2-mod_security2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15456-1"}],"prev":{"headline":"Privilege escalation in Binisoft Windows Firewall Control","id":"CVE-2025-54569"},"products":["ModSecurity"],"published":"2025-08-05","related":[{"cvss_score":8.6,"headline":"Security feature bypass in ModSecurity","id":"CVE-2026-52747","kev_date_added":null,"published":"2026-07-10"},{"cvss_score":8.6,"headline":"WAF bypass of the ModSecurity v3 release line","id":"CVE-2024-1019","kev_date_added":null,"published":"2024-01-30"},{"cvss_score":8.2,"headline":"ModSecurity: Unsigned integer underflow in @verifySSN / @verifyCPF / @verifySVNR operators","id":"CVE-2026-42268","kev_date_added":null,"published":"2026-05-12"},{"cvss_score":8.2,"headline":"libModSecurity3 denial of service via segfault when using t:hexDecode on single-character query strings","id":"CVE-2026-30923","kev_date_added":null,"published":"2026-05-05"},{"cvss_score":7.5,"headline":"ModSecurity has possible DoS vulnerability in sanitiseArg action","id":"CVE-2025-48866","kev_date_added":null,"published":"2025-06-02"},{"cvss_score":7.5,"headline":"Trustwave ModSecurity 3.x before 3.0.10 has Inefficient Algorithmic Complexity.","id":"CVE-2023-38285","kev_date_added":null,"published":"2023-07-26"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2023-28882","kev_date_added":null,"published":"2023-04-28"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["owasp-modsecurity"]},"summary":"Attackers can override HTTP Content-Type headers in ModSecurity, leading to Cross-Site Scripting and source code disclosure.","url":"https://insights.sbomify.com/CVE-2025-54571/"}