{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/16165?format=json","vulnerability_id":"VCID-jzj3-ddrr-u7hd","summary":"ReDoS Vulnerability in ua-parser-js version\n### Description:\nA regular expression denial of service (ReDoS) vulnerability has been discovered in `ua-parser-js`.\n\n### Impact:\nThis vulnerability bypass the library's `MAX_LENGTH` input limit prevention. By crafting a very-very-long user-agent string with specific pattern, an attacker can turn the script to get stuck processing for a very long time which results in a denial of service (DoS) condition.\n\n### Affected Versions:\nFrom version `0.7.30` to before versions `0.7.33` / `1.0.33`.\n\n### Patches:\nA patch has been released to remove the vulnerable regular expression, update to version `0.7.33` / `1.0.33` or later.\n\n### References:\n[Regular expression Denial of Service - ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n\n### Credits:\nThanks to @Snyk who first reported the issue.","aliases":[{"alias":"CVE-2022-25927"},{"alias":"GHSA-fhg7-m89q-25r3"},{"alias":"GMS-2023-120"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/932696?format=json","purl":"pkg:deb/debian/node-ua-parser-js@0.8.1%2Bds%2B~0.7.36-3?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-ua-parser-js@0.8.1%252Bds%252B~0.7.36-3%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/1055024?format=json","purl":"pkg:deb/debian/node-ua-parser-js@0.8.1%2Bds%2B~0.7.36-3","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-ua-parser-js@0.8.1%252Bds%252B~0.7.36-3"},{"url":"http://public2.vulnerablecode.io/api/packages/55511?format=json","purl":"pkg:npm/ua-parser-js@0.7.33","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.7.33"},{"url":"http://public2.vulnerablecode.io/api/packages/55512?format=json","purl":"pkg:npm/ua-parser-js@1.0.33","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.33"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/1055023?format=json","purl":"pkg:deb/debian/node-ua-parser-js@0.7.24%2Bds-1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-ua-parser-js@0.7.24%252Bds-1"},{"url":"http://public2.vulnerablecode.io/api/packages/932698?format=json","purl":"pkg:deb/debian/node-ua-parser-js@0.7.24%2Bds-1?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-ua-parser-js@0.7.24%252Bds-1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/41075?format=json","purl":"pkg:npm/ua-parser-js@0.7.30","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.7.30"},{"url":"http://public2.vulnerablecode.io/api/packages/353740?format=json","purl":"pkg:npm/ua-parser-js@0.7.31","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.7.31"},{"url":"http://public2.vulnerablecode.io/api/packages/353741?format=json","purl":"pkg:npm/ua-parser-js@0.7.32","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.7.32"},{"url":"http://public2.vulnerablecode.io/api/packages/41073?format=json","purl":"pkg:npm/ua-parser-js@0.8.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-dmh1-fut8-2ygz"},{"vulnerability":"VCID-jzj3-ddrr-u7hd"},{"vulnerability":"VCID-sy9w-7ehk-m3he"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.8.0"},{"url":"http://public2.vulnerablecode.io/api/packages/41076?format=json","purl":"pkg:npm/ua-parser-js@0.8.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.8.1"},{"url":"http://public2.vulnerablecode.io/api/packages/41077?format=json","purl":"pkg:npm/ua-parser-js@1.0.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.1"},{"url":"http://public2.vulnerablecode.io/api/packages/353742?format=json","purl":"pkg:npm/ua-parser-js@1.0.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.2"},{"url":"http://public2.vulnerablecode.io/api/packages/353743?format=json","purl":"pkg:npm/ua-parser-js@1.0.32","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-jzj3-ddrr-u7hd"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.32"}],"references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-25927.json","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-25927.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2022-25927","reference_id":"","reference_type":"","scores":[{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.80791","published_at":"2026-04-08T12:55:00Z"},{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.80833","published_at":"2026-04-18T12:55:00Z"},{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.8083","published_at":"2026-04-16T12:55:00Z"},{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.80793","published_at":"2026-04-13T12:55:00Z"},{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.80801","published_at":"2026-04-12T12:55:00Z"},{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.80816","published_at":"2026-04-11T12:55:00Z"},{"value":"0.01453","scoring_system":"epss","scoring_elements":"0.808","published_at":"2026-04-09T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.81102","published_at":"2026-04-21T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.81034","published_at":"2026-04-07T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.81153","published_at":"2026-05-05T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.8114","published_at":"2026-04-29T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.81134","published_at":"2026-04-26T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.81126","published_at":"2026-04-24T12:55:00Z"},{"value":"0.01493","scoring_system":"epss","scoring_elements":"0.81174","published_at":"2026-05-07T12:55:00Z"},{"value":"0.01803","scoring_system":"epss","scoring_elements":"0.82772","published_at":"2026-04-04T12:55:00Z"},{"value":"0.01803","scoring_system":"epss","scoring_elements":"0.82758","published_at":"2026-04-02T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2022-25927"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25927","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25927"},{"reference_url":"https://github.com/faisalman/ua-parser-js","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/faisalman/ua-parser-js"},{"reference_url":"https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P"},{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-01T18:27:15Z/"}],"url":"https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411"},{"reference_url":"https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P"},{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-01T18:27:15Z/"}],"url":"https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2165020","reference_id":"2165020","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2165020"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25927","reference_id":"CVE-2022-25927","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25927"},{"reference_url":"https://github.com/advisories/GHSA-fhg7-m89q-25r3","reference_id":"GHSA-fhg7-m89q-25r3","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-fhg7-m89q-25r3"},{"reference_url":"https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3","reference_id":"GHSA-fhg7-m89q-25r3","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3"},{"reference_url":"https://access.redhat.com/errata/RHSA-2023:1428","reference_id":"RHSA-2023:1428","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2023:1428"}],"weaknesses":[{"cwe_id":1333,"name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles."},{"cwe_id":400,"name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."}],"exploits":[],"severity_range_score":"5.3 - 8.9","exploitability":"0.5","weighted_severity":"8.0","risk_score":4.0,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-jzj3-ddrr-u7hd"}