{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:uap-core_project:uap-core:*:*:*:*:*:node.js:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.11.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "01ccff6ccaaa9216405da120636a35fe38286bae"
            },
            {
              "fixed": "dc9925d458214cfe87b93e35346980612f6ae96c"
            }
          ],
          "repo": "https://github.com/ua-parser/uap-core",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-p4pj-mg4r-x6v4"
  ],
  "database_specific": {},
  "details": "uap-core in an open-source npm package which contains the core of BrowserScope's original user agent string parser. In uap-core before version 0.11.0, some regexes are vulnerable to regular expression denial of service (REDoS) due to overlapping capture groups. This allows remote attackers to overload a server by setting the User-Agent header in an HTTP(S) request to maliciously crafted long strings. This is fixed in version 0.11.0. Downstream packages such as uap-python, uap-ruby etc which depend upon uap-core follow different version schemes.",
  "id": "CVE-2021-21317",
  "modified": "2026-07-08T05:39:29.047975775Z",
  "published": "2021-02-16T18:15:12.583Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.npmjs.com/package/uap-core"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ]
}