{"answers":{"affected":"4 open source packages ship an affected version, including org.webjars.npm:http-cache-semantics and http-cache-semantics. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25881 exists.","fix":"Upgrade org.webjars.npm:http-cache-semantics to 4.1.1 or later.","what":"CVE-2022-25881 is a medium-severity denial of service vulnerability in http-cache-semantics, published on 31 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-25881 and fix it if it is affected.\n\nWhat it is: CVE-2022-25881 is a medium-severity denial of service vulnerability in http-cache-semantics, published on 31 Jan 2023. 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-2022-25881 exists.\n\nAffected packages and fixed versions:\n- org.webjars.npm:http-cache-semantics (Maven): affected all versions; fixed in 4.1.1\n- org.webjars.npm:http-cache-semantics (Maven): affected all versions; fixed in 4.1.1\n- http-cache-semantics (npm): affected all versions; fixed in 4.1.1\n- http-cache-semantics (npm): affected all versions; fixed in 4.1.1\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-2022-25881/ (Markdown: https://insights.sbomify.com/CVE-2022-25881/index.md)","id":"CVE-2022-25881","markdown":"https://insights.sbomify.com/CVE-2022-25881/index.md","name":"CVE-2022-25881","record":{"aliases":["AZL-13173","AZL-43768","AZL-44958","CLEANSTART-2026-IK83988","CLEANSTART-2026-OX04793","GHSA-rc47-6667-2j5j","MINI-gpf6-jjpc-gxw6","ROOT-APP-NPM-CVE-2022-25881","SUSE-SU-2023:1871-1","SUSE-SU-2023:1872-1","SUSE-SU-2023:1875-1","SUSE-SU-2023:1876-1","SUSE-SU-2023:1923-1","SUSE-SU-2023:1924-1","SUSE-SU-2023:1942-1","openSUSE-SU-2024:12870-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"npm http-cache-semantics","requires_auth":"none","summary":"A malicious request header can cause excessive CPU consumption in the http-cache-semantics library, leading to denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"http-cache-semantics","vendor":"http-cache-semantics_project"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"This affects versions of the package http-cache-semantics before 4.1.1. The issue can be exploited via malicious request header values sent to a server, when that server reads the cache policy from the request using this library.","ecosystems":["Maven","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Module for Web and Scripting 15 SP4","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Manager Server 4.2","npm","openSUSE:Leap 15.4","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":"http-cache-semantics vulnerable to Regular Expression Denial of Service","id":"CVE-2022-25881","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":45,"n_references":4,"next":{"headline":"Directory Traversal in onnx","id":"CVE-2022-25882"},"packages":[{"ecosystem":"Maven","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"org.webjars.npm:http-cache-semantics","purl":null,"source":"GHSA-rc47-6667-2j5j"},{"ecosystem":"Maven","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"org.webjars.npm:http-cache-semantics","purl":"pkg:maven/org.webjars.npm/http-cache-semantics","source":"GHSA-rc47-6667-2j5j"},{"ecosystem":"npm","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"http-cache-semantics","purl":null,"source":"GHSA-rc47-6667-2j5j"},{"ecosystem":"npm","fixed":["4.1.1"],"introduced":["0"],"last_affected":[],"package":"http-cache-semantics","purl":"pkg:npm/http-cache-semantics","source":"GHSA-rc47-6667-2j5j"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["16.20.0-150300.7.21.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:1923-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["16.20.0-150300.7.21.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:1923-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["16.20.0-150300.7.21.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:1923-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["14.21.3-6.43.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2023:1872-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["16.20.0-8.27.1"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2023:1942-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP4","fixed":["16.20.0-150400.3.18.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP4","source":"SUSE-SU-2023:1924-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["16.20.0-150300.7.21.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:1923-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["10.24.1-150000.1.59.1"],"introduced":["0"],"last_affected":[],"package":"nodejs10","purl":"pkg:rpm/suse/nodejs10\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:1871-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["16.20.0-150300.7.21.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:1923-1"},{"ecosystem":"SUSE:Manager Server 4.2","fixed":["12.22.12-150200.4.47.1"],"introduced":["0"],"last_affected":[],"package":"nodejs12","purl":"pkg:rpm/suse/nodejs12\u0026distro=SUSE%20Manager%20Server%204.2","source":"SUSE-SU-2023:1876-1"},{"ecosystem":"SUSE:Manager Server 4.2","fixed":["14.21.3-150200.15.46.1"],"introduced":["0"],"last_affected":[],"package":"nodejs14","purl":"pkg:rpm/suse/nodejs14\u0026distro=SUSE%20Manager%20Server%204.2","source":"SUSE-SU-2023:1875-1"},{"ecosystem":"SUSE:Manager Server 4.2","fixed":["16.20.0-150300.7.21.2"],"introduced":["0"],"last_affected":[],"package":"nodejs16","purl":"pkg:rpm/suse/nodejs16\u0026distro=SUSE%20Manager%20Server%204.2","source":"SUSE-SU-2023:1923-1"}],"prev":{"headline":"Delta Electronics DIAEnergie SQL Injection in DIAE_hierarchyHandler.ashx","id":"CVE-2022-25880"},"products":["http-cache-semantics","org.webjars.npm:http-cache-semantics"],"published":"2023-01-31","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":"SUSE","prefix":"SUSE"},{"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-27","vendors":["n/a"]},"summary":"A malicious request header can cause excessive CPU consumption in the http-cache-semantics library, leading to denial of service.","url":"https://insights.sbomify.com/CVE-2022-25881/"}