{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:validate_color_project:validate_color:2.1.0:*:*:*:*:node.js:*:*",
            "extracted_events": [
              {
                "introduced": "2.1.0"
              },
              {
                "last_affected": "2.1.0"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "003dfa8122541972ad23999eafffdc40932cd5d5"
            },
            {
              "last_affected": "003dfa8122541972ad23999eafffdc40932cd5d5"
            }
          ],
          "repo": "https://github.com/dreamyguy/validate-color",
          "type": "GIT"
        }
      ],
      "versions": [
        "2.1.0"
      ]
    }
  ],
  "database_specific": {},
  "details": "A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in validate-color v2.1.0 when handling crafted invalid rgb(a) strings.",
  "id": "CVE-2021-40892",
  "modified": "2026-07-08T05:36:20.460727523Z",
  "published": "2022-06-24T14:15:07.700Z",
  "references": [
    {
      "type": "EVIDENCE",
      "url": "https://github.com/yetingli/SaveResults/blob/main/js/validate-color.js"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}