{"answers":{"affected":"2 open source packages ship an affected version, including ua-parser. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-16086 exists.","fix":"No fix has been published for CVE-2017-16086 yet. Limit exposure of the affected software until one is available.","what":"CVE-2017-16086 is a high-severity denial of service vulnerability in HackerOne ua-parser node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-16086 and fix it if it is affected.\n\nWhat it is: CVE-2017-16086 is a high-severity denial of service vulnerability in HackerOne ua-parser node module, published on 7 Jun 2018. 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-2017-16086 exists.\n\nAffected packages and fixed versions:\n- ua-parser (npm): affected all versions up to 0.3.5; no fix listed\n- ua-parser (npm): affected all versions up to 0.3.5; no fix listed\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-2017-16086/ (Markdown: https://insights.sbomify.com/CVE-2017-16086/index.md)","id":"CVE-2017-16086","markdown":"https://insights.sbomify.com/CVE-2017-16086/index.md","name":"CVE-2017-16086","record":{"aliases":["GHSA-pmg9-p9r2-6q87"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js user agent parser","requires_auth":"none","summary":"Attackers can cause denial of service in applications using ua-parser by sending specially crafted User-Agent headers that trigger excessive CPU usage.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"ua-parser","vendor":"ua-parser_project"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"ua-parser is a port of Browserscope's user agent parser. ua-parser is vulnerable to a ReDoS (Regular Expression Denial of Service) attack when given a specially crafted UserAgent header.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":null,"kind":"metasploit","ref":"auxiliary/dos/http/ua_parser_js_redos","stars":null,"title":"ua-parser-js npm module ReDoS"}],"tier":"weaponised"},"has_fix":false,"headline":"ReDoS via long UserAgent header in ua-parser","id":"CVE-2017-16086","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2017"},"n_packages":2,"n_references":1,"next":{"headline":"Sandbox Breakout in safe-eval","id":"CVE-2017-16088"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.3.5"],"package":"ua-parser","purl":null,"source":"GHSA-pmg9-p9r2-6q87"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.3.5"],"package":"ua-parser","purl":"pkg:npm/ua-parser","source":"GHSA-pmg9-p9r2-6q87"}],"prev":{"headline":"Directory Traversal in tinyserver2","id":"CVE-2017-16085"},"products":["ua-parser node module"],"published":"2018-06-07","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":"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)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["HackerOne"]},"summary":"Attackers can cause denial of service in applications using ua-parser by sending specially crafted User-Agent headers that trigger excessive CPU usage.","url":"https://insights.sbomify.com/CVE-2017-16086/"}