Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/ua-parser-js@0.7.30
purl pkg:npm/ua-parser-js@0.7.30
Next non-vulnerable version 0.7.33
Latest non-vulnerable version 1.0.33
Risk 4.0
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-jzj3-ddrr-u7hd
Aliases:
CVE-2022-25927
GHSA-fhg7-m89q-25r3
GMS-2023-120
ReDoS Vulnerability in ua-parser-js version ### Description: A regular expression denial of service (ReDoS) vulnerability has been discovered in `ua-parser-js`. ### Impact: This 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. ### Affected Versions: From version `0.7.30` to before versions `0.7.33` / `1.0.33`. ### Patches: A patch has been released to remove the vulnerable regular expression, update to version `0.7.33` / `1.0.33` or later. ### References: [Regular expression Denial of Service - ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) ### Credits: Thanks to @Snyk who first reported the issue.
0.7.33
Affected by 0 other vulnerabilities.
1.0.33
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (2)
Vulnerability Summary Aliases
VCID-dmh1-fut8-2ygz Embedded malware in ua-parser-js The npm package `ua-parser-js` had three versions published with malicious code. Users of affected versions (0.7.29, 0.8.0, 1.0.0) should upgrade as soon as possible and check their systems for suspicious activity. See [this issue](https://github.com/faisalman/ua-parser-js/issues/536) for details as they unfold. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it. CVE-2021-4229
GHSA-pjwm-rvh2-c87w
GMS-2021-1
VCID-sy9w-7ehk-m3he Duplicate Advisory: Embedded malware in ua-parser-js ### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pjwm-rvh2-c87w. This link is maintained to preserve external references. ### Original Description A vulnerability was found in ua-parser-js 0.7.29/0.8.0/1.0.0. It has been rated as critical. This issue affects the crypto mining component which introduces a backdoor. Upgrading to version 0.7.30, 0.8.1 and 1.0.1 is able to address this issue. It is recommended to upgrade the affected component. GHSA-236c-vhj4-gfxg

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T22:20:22.843029+00:00 GitLab Importer Affected by VCID-jzj3-ddrr-u7hd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ua-parser-js/CVE-2022-25927.yml 38.4.0
2026-04-11T23:38:19.221265+00:00 GitLab Importer Affected by VCID-jzj3-ddrr-u7hd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ua-parser-js/CVE-2022-25927.yml 38.3.0
2026-04-03T21:27:04.315738+00:00 GitLab Importer Fixing VCID-sy9w-7ehk-m3he https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ua-parser-js/GHSA-236c-vhj4-gfxg.yml 38.1.0
2026-04-02T23:42:34.566731+00:00 GitLab Importer Affected by VCID-jzj3-ddrr-u7hd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ua-parser-js/CVE-2022-25927.yml 38.1.0
2026-04-02T16:58:50.230023+00:00 GHSA Importer Affected by VCID-jzj3-ddrr-u7hd https://github.com/advisories/GHSA-fhg7-m89q-25r3 38.1.0
2026-04-02T16:58:23.212600+00:00 GHSA Importer Fixing VCID-dmh1-fut8-2ygz https://github.com/advisories/GHSA-pjwm-rvh2-c87w 38.1.0
2026-04-01T16:02:30.653157+00:00 GHSA Importer Fixing VCID-sy9w-7ehk-m3he https://github.com/advisories/GHSA-236c-vhj4-gfxg 38.0.0
2026-04-01T13:09:22.874218+00:00 GithubOSV Importer Fixing VCID-sy9w-7ehk-m3he https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-236c-vhj4-gfxg/GHSA-236c-vhj4-gfxg.json 38.0.0
2026-04-01T13:00:41.273537+00:00 GithubOSV Importer Fixing VCID-dmh1-fut8-2ygz https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-pjwm-rvh2-c87w/GHSA-pjwm-rvh2-c87w.json 38.0.0
2026-04-01T12:50:48.391055+00:00 GitLab Importer Affected by VCID-jzj3-ddrr-u7hd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ua-parser-js/CVE-2022-25927.yml 38.0.0
2026-04-01T12:48:58.049464+00:00 GitLab Importer Fixing VCID-dmh1-fut8-2ygz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/ua-parser-js/CVE-2021-4229.yml 38.0.0