Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: 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
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-25927
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 00:53 UTC · Revision 1

Source evidence

CVE-2022-25927

core-osv · Original source

Published 25 Jan 2023, 05:00 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:CVE-2022-25927
Complete source record
{
  "id": "43fbac6eb5355cfc1d499717d896e6d2e8a40f137519fb0f90f15583b4b9ebc8",
  "url": "https://osv.dev/vulnerability/CVE-2022-25927",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "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:CVE-2022-25927",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-25927",
      "aliases": [
        "CVE-2022-25927",
        "GHSA-fhg7-m89q-25r3"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/faisalman/ua-parser-js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "139fbc321a36ff663aac471a61d109728ac17f0b"
                },
                {
                  "fixed": "f2d0db001d87da15de7b9b1df7be9f2eacefd8c5"
                },
                {
                  "introduced": "051aa5d284157ea4147f8ee23282f7c4117d71c3"
                },
                {
                  "fixed": "67005e3494e390a78f35be4efdc999bc9f7beb30"
                },
                {
                  "fixed": "a6140a17dd0300a35cfc9cff999545f267889411"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0.7.30"
                      },
                      {
                        "fixed": "0.7.33"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0.8.1"
                      },
                      {
                        "fixed": "1.0.33"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a6140a17dd0300a35cfc9cff999545f267889411"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.32",
            "1.0.2",
            "0.7.31",
            "1.0.1",
            "0.8.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25927.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.005310971Z",
      "provider": "osv",
      "references": [
        "https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25927.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-25927",
        "https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333"
        ],
        "cna_assigner": "snyk",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25927.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-25927",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491333,
  "published_at": "2023-01-25T05:00:00.897+00:00"
}