{"id":"CVE-2022-25927","aliases":["CLSA-2026-1782781179","DEBIAN-CVE-2022-25927","EUVD-2023-0457","GHSA-fhg7-m89q-25r3","ROOT-APP-NPM-CVE-2022-25927","UBUNTU-CVE-2022-25927"],"status":"published","title":"ReDoS Vulnerability in ua-parser-js version","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01774,"percentile":0.78344,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-1333","CWE-400"],"published":"2023-01-24T15:36:32Z","modified":"2026-11-03T06:02:26Z","exploits":[{"source":"pocgithub","id":"masahiro331/cve-2022-25927","title":"masahiro331/cve-2022-25927","date":"2023-02-01","url":"https://github.com/masahiro331/cve-2022-25927"},{"source":"pocgithub","id":"Sleuth-in-town/CVE-2022-25927-test","title":"Sleuth-in-town/CVE-2022-25927-test","date":"2026-03-28","url":"https://github.com/Sleuth-in-town/CVE-2022-25927-test"}],"fixes":[{"ecosystem":"npm","package":"ua-parser-js","fixed_in":["1.0.33","0.7.33"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"ua-parser-js","fixed_in":["0.7.31-tuxcare.1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"node-ua-parser-js","fixed_in":["0.8.1+ds+~0.7.36-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-ua-parser-js","fixed_in":["0.8.1+ds+~0.7.36-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-ua-parser-js","fixed_in":["0.8.1+ds+~0.7.36-3"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"ua-parser-js","fixed_in":["0.7.31-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/ua-parser-js","fixed_in":["0.7.31-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.8.0"},{"fixed":"1.0.33"}]}]},{"source":"ghsa","ecosystem":"npm","package":"ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.7.30"},{"fixed":"0.7.33"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.7.31-tuxcare.0"},{"fixed":"0.7.31-tuxcare.1"}]}],"versions":["0.7.31"]},{"source":"osv","ecosystem":"Debian:12","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1+ds+~0.7.36-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1+ds+~0.7.36-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1+ds+~0.7.36-3"}]}]},{"source":"osv","ecosystem":"npm","package":"ua-parser-js","ranges":[{"type":"SEMVER","events":[{"introduced":"0.7.30"},{"fixed":"0.7.33"}]}]},{"source":"osv","ecosystem":"npm","package":"ua-parser-js","ranges":[{"type":"SEMVER","events":[{"introduced":"0.8.0"},{"fixed":"1.0.33"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.31-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.31-root.io.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.14-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.14-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.24+ds-1","0.7.24+ds-2","0.7.31+ds+~0.7.36-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1+ds+~0.7.36-3"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1+ds+~0.7.36-3"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1+ds+~0.7.36-3","2.0.10+ds+~cs0.3.5-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-ua-parser-js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1+ds+~0.7.36-3"]}],"products":[{"vendor":"ua-parser-js_project","product":"ua-parser-js"},{"vendor":"unspecified","product":"ua-parser-js"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450","tags":["x_transferred","Exploit","Third Party Advisory","web","report"]},{"url":"https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411","tags":["x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3","tags":["web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25927","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-fhg7-m89q-25r3"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25927.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-25927","tags":["advisory"]},{"url":"https://github.com/faisalman/ua-parser-js","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-25927","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25927","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-25927","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.\r\r","status":"published","published":"2023-01-25T05:00:00.897Z","modified":"2025-04-01T18:28:37.897Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium","assessor":"cna"}],"cwes":["CWE-1333","CWE-1333"],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2023-0457","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.\r\r","status":"published","published":"2023-01-25T05:00:00Z","modified":"2025-04-01T18:28:37Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium"}],"updated_at":"2026-11-02T20:52:45.339497Z"}],"ghsa":[{"id":"GHSA-fhg7-m89q-25r3","title":"ReDoS Vulnerability in ua-parser-js version","description":"### 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.","status":"published","published":"2023-01-24T15:36:32Z","modified":"2025-10-17T16:52:25Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-1333"],"updated_at":"2026-11-02T14:39:01.677422Z"}],"nvd":[{"id":"CVE-2022-25927","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.\r\r","status":"published","published":"2023-01-26T21:15:32.107Z","modified":"2026-06-17T04:34:30.237Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:07:35.561816Z"}],"osv":[{"id":"CVE-2022-25927","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.\r\r","status":"published","published":"2023-01-25T05:00:00.897Z","modified":"2026-10-28T02:30:25.005310971Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"DEBIAN-CVE-2022-25927","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.","status":"published","published":"2023-01-26T21:15:32.107Z","modified":"2026-11-03T08:02:16.069107657Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T08:24:50.542442Z"},{"id":"GHSA-fhg7-m89q-25r3","title":"ReDoS Vulnerability in ua-parser-js version","description":"### 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.","status":"published","published":"2023-01-24T15:36:32Z","modified":"2025-10-17T16:52:22Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333","CWE-400"],"updated_at":"2026-11-02T15:46:46.39441Z"},{"id":"UBUNTU-CVE-2022-25927","description":"Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.","status":"published","published":"2023-01-26T21:15:00Z","modified":"2026-10-17T12:56:02.396338301Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:53.13624Z"},{"id":"CLSA-2026-1782781179","title":"TuxCare security update for ua-parser-js (1 CVE)","description":"TuxCare rebuilt ua-parser-js to address 1 CVE. Fixed in 0.7.31-tuxcare.1.","status":"published","published":"2026-08-04T14:52:40Z","modified":"2026-10-15T09:47:51.547700311Z","updated_at":"2026-11-02T15:43:45.794021Z"},{"id":"ROOT-APP-NPM-CVE-2022-25927","title":"CVE-2022-25927 in ua-parser-js - Patched by Root","description":"Root has patched CVE-2022-25927 in the ua-parser-js package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-09-10T15:10:03Z","modified":"2026-09-10T16:15:36.868802889Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
