{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-9308 exists.","fix":"Product is end of life, replace it.","what":"CVE-2025-9308 is a medium-severity denial of service vulnerability in yarnpkg Yarn, published on 21 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-9308 and fix it if it is affected.\n\nWhat it is: CVE-2025-9308 is a medium-severity denial of service vulnerability in yarnpkg Yarn, published on 21 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-9308 exists.\n\nAffected product: yarnpkg Yarn. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-9308/ (Markdown: https://insights.sbomify.com/CVE-2025-9308/index.md)","id":"CVE-2025-9308","markdown":"https://insights.sbomify.com/CVE-2025-9308/index.md","name":"CVE-2025-9308","record":{"aliases":["DEBIAN-CVE-2025-9308","GHSA-pfv3-xh9q-f4rq","MINI-x9wf-vrp9-qqff","UBUNTU-CVE-2025-9308"],"analysis":{"component_type":"developer_tool","fix_type":"end_of_life","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Yarn package manager","requires_auth":"low_privilege","summary":"A local attacker can cause a denial of service in Yarn via inefficient regular expression complexity in the request manager.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"yarn","vendor":"yarnpkg"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X","version":"4.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such manipulation leads to inefficient regular expression complexity. Local access is required to approach this attack. This vulnerability only affects products that are no longer supported by the maintainer.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"yarnpkg Yarn request-manager.js setOptions redos","id":"CVE-2025-9308","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":0,"n_references":4,"next":{"headline":"Tenda AC10 MD5 Hash shadow hard-coded credentials","id":"CVE-2025-9309"},"packages":[],"prev":{"headline":"PHPGurukul Online Course Registration session.php sql injection","id":"CVE-2025-9307"},"products":["Yarn"],"published":"2025-08-21","related":[{"cvss_score":8.1,"headline":"Missing Encryption of Sensitive Data in yarn","id":"CVE-2019-5448","kev_date_added":null,"published":"2019-07-30"},{"cvss_score":7.8,"headline":"Yarn Improper link resolution before file access (Link Following)","id":"CVE-2019-10773","kev_date_added":null,"published":"2019-12-16"},{"cvss_score":7.7,"headline":"Yarn: untrusted search path","id":"CVE-2021-4435","kev_date_added":null,"published":"2024-02-04"},{"cvss_score":7.5,"headline":"Path Traversal in Yarn","id":"CVE-2020-8131","kev_date_added":null,"published":"2020-02-24"},{"cvss_score":5.9,"headline":"TOCTOU Race Condition in Yarn","id":"CVE-2019-15608","kev_date_added":null,"published":"2020-03-15"},{"cvss_score":5.3,"headline":"yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos","id":"CVE-2025-8262","kev_date_added":null,"published":"2025-07-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"partial"},"state":"PUBLISHED","updated":"2025-08-21","vendors":["yarnpkg"]},"summary":"A local attacker can cause a denial of service in Yarn via inefficient regular expression complexity in the request manager.","url":"https://insights.sbomify.com/CVE-2025-9308/"}