Skip to content
Heist/ feed
Back to feed
High

node-ua-parser-js — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-25927

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.

Products
node-ua-parser-js
Affected versions
0.7.14-1, 0.7.24+ds-1, 0.7.24+ds-2, 0.7.31+ds+~0.7.36-1, 0.8.1+ds+~0.7.36-3, 2.0.10+ds+~cs0.3.5-1
Fixed versions
Not specified
CVEs
CVE-2022-25927
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:45 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-25927

core-osv · Original source

Published 26 Jan 2023, 21:15 UTC

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.

osv:UBUNTU-CVE-2022-25927

node-ua-parser-js

Fixed versions: Not specified

node-ua-parser-js

Fixed versions: Not specified

node-ua-parser-js

Fixed versions: Not specified

node-ua-parser-js

Fixed versions: Not specified

node-ua-parser-js

Fixed versions: Not specified

node-ua-parser-js

Fixed versions: Not specified

node-ua-parser-js

Fixed versions: Not specified

Complete source record
{
  "id": "59eda09ddf33a6499b9d69e200a21782c79c4c89fabafadddcb3441e4385db42",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-25927",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-25927",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2022-25927",
    "products": [
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.7.14-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.7.14-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.7.24+ds-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.7.24+ds-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.7.31+ds+~0.7.36-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.1+ds+~0.7.36-3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.1+ds+~0.7.36-3",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.1+ds+~0.7.36-3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.0.10+ds+~cs0.3.5-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-ua-parser-js",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.1+ds+~0.7.36-3",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-25927",
      "aliases": [
        "UBUNTU-CVE-2022-25927"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.7.14-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "0.7.14-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.7.14-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "0.7.14-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.7.24+ds-1",
            "0.7.24+ds-2",
            "0.7.31+ds+~0.7.36-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "0.7.31+ds+~0.7.36-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.8.1+ds+~0.7.36-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "0.8.1+ds+~0.7.36-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.8.1+ds+~0.7.36-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "0.8.1+ds+~0.7.36-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.8.1+ds+~0.7.36-3",
            "2.0.10+ds+~cs0.3.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "2.0.10+ds+~cs0.3.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-ua-parser-js",
            "purl": "pkg:deb/ubuntu/node-ua-parser-js?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.8.1+ds+~0.7.36-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25927.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-ua-parser-js",
                "binary_version": "0.8.1+ds+~0.7.36-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:02.396338301Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-25927"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-25927",
        "https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411",
        "https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450",
        "https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3",
        "https://www.cve.org/CVERecord?id=CVE-2022-25927"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-25927",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 354652,
  "published_at": "2023-01-26T21:15:00+00:00"
}