{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8262 exists.","fix":"Apply the vendor's patch.","what":"CVE-2025-8262 is a medium-severity denial of service vulnerability in yarnpkg Yarn, published on 28 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-8262 and fix it if it is affected.\n\nWhat it is: CVE-2025-8262 is a medium-severity denial of service vulnerability in yarnpkg Yarn, published on 28 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8262 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-8262/ (Markdown: https://insights.sbomify.com/CVE-2025-8262/index.md)","id":"CVE-2025-8262","markdown":"https://insights.sbomify.com/CVE-2025-8262/index.md","name":"CVE-2025-8262","record":{"aliases":["BELL-CVE-2025-8262","DEBIAN-CVE-2025-8262","GHSA-9xhp-f235-5v37","MINI-r5rp-6854-5vpj","UBUNTU-CVE-2025-8262"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Yarn package manager","requires_auth":"low_privilege","summary":"Remote attackers can cause denial of service in Yarn via inefficient regular expression complexity in the hosted-git-resolver component.","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":5.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/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 was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.","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 hosted-git-resolver.js explodeHostedGitFragment redos","id":"CVE-2025-8262","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":0,"n_references":5,"next":{"headline":"** REJECT ** DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2025-8263"},"packages":[],"prev":{"headline":"Vaelsys VaelsysV4 User Creation vgrid_server.php improper authorization","id":"CVE-2025-8261"},"products":["Yarn"],"published":"2025-07-28","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":4.8,"headline":"yarnpkg Yarn request-manager.js setOptions redos","id":"CVE-2025-9308","kev_date_added":null,"published":"2025-08-21"}],"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-07-28","vendors":["yarnpkg"]},"summary":"Remote attackers can cause denial of service in Yarn via inefficient regular expression complexity in the hosted-git-resolver component.","url":"https://insights.sbomify.com/CVE-2025-8262/"}