{"id":"UBUNTU-CVE-2022-25927","details":"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.","modified":"2026-01-20T17:47:41.864673Z","published":"2023-01-26T21:15:00Z","upstream":["CVE-2022-25927"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-25927"},{"type":"REPORT","url":"https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450"},{"type":"REPORT","url":"https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-25927"}],"affected":[{"package":{"name":"node-ua-parser-js","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-ua-parser-js@0.7.14-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.14-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.14-1","binary_name":"node-ua-parser-js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"}},{"package":{"name":"node-ua-parser-js","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-ua-parser-js@0.7.14-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.14-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.14-1","binary_name":"node-ua-parser-js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"}},{"package":{"name":"node-ua-parser-js","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-ua-parser-js@0.7.31+ds+~0.7.36-1?arch=source&distro=jammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.31+ds+~0.7.36-1","binary_name":"node-ua-parser-js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"}},{"package":{"name":"node-ua-parser-js","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-ua-parser-js@0.8.1+ds+~0.7.36-3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1+ds+~0.7.36-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.1+ds+~0.7.36-3","binary_name":"node-ua-parser-js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"}},{"package":{"name":"node-ua-parser-js","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-ua-parser-js@0.8.1+ds+~0.7.36-3?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1+ds+~0.7.36-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.1+ds+~0.7.36-3","binary_name":"node-ua-parser-js"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}