Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-23382

The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \/\*\s* sourceMappingURL=(.*).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-23382
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:14 UTC · Revision 1

Source evidence

CVE-2021-23382

core-osv · Original source

Published 26 Apr 2021, 16:15 UTC

The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \/\*\s* sourceMappingURL=(.*).

osv:CVE-2021-23382
Complete source record
{
  "id": "27880ccc1096c02b553963a55b2db75faf9ff492325f3b6a9d22740839846710",
  "url": "https://osv.dev/vulnerability/CVE-2021-23382",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-23382",
    "summary": "The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \\/\\*\\s* sourceMappingURL=(.*).",
    "evidence": "osv:CVE-2021-23382",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-23382",
      "aliases": [
        "CVE-2021-23382",
        "GHSA-566m-qj78-rww5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/postcss/postcss",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "67e3d7b3402c5d3d036ab7c1e781f86910d6ca72"
                },
                {
                  "introduced": "d41a37605adc16b3eb17f806ce0259a8b316e603"
                },
                {
                  "fixed": "030bd25ed90bcd5b790b58cabe6628e48cf0026c"
                },
                {
                  "fixed": "2b1d04c867995e55124e0a165b7c6622c1735956"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:postcss:postcss:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.0.36"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:postcss:postcss:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.2.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2b1d04c867995e55124e0a165b7c6622c1735956"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.0.35",
            "8.2.12",
            "8.2.11",
            "8.2.10",
            "8.2.9",
            "8.2.8",
            "8.2.7",
            "8.2.6",
            "8.2.5",
            "8.2.4",
            "8.2.3",
            "8.2.2",
            "8.2.1",
            "8.2.0",
            "8.1.14",
            "8.1.13",
            "8.1.12",
            "8.1.11",
            "8.1.10",
            "8.1.9",
            "8.1.8",
            "8.1.7",
            "8.1.6",
            "8.1.5",
            "8.1.4",
            "8.1.3",
            "8.1.2",
            "8.1.1",
            "7.0.34",
            "8.1.0",
            "8.0.9",
            "8.0.8",
            "8.0.7",
            "8.0.6",
            "8.0.5",
            "8.0.4",
            "7.0.33",
            "7.0.32",
            "8.0.3",
            "8.0.2",
            "8.0.1",
            "8.0.0",
            "7.0.31",
            "7.0.30",
            "7.0.29",
            "7.0.28",
            "7.0.27",
            "7.0.26",
            "7.0.25",
            "7.0.24",
            "7.0.23",
            "7.0.22",
            "7.0.21",
            "7.0.20",
            "7.0.19",
            "7.0.18",
            "7.0.17",
            "7.0.16",
            "7.0.15",
            "7.0.14",
            "7.0.13",
            "7.0.12",
            "7.0.11",
            "7.0.10",
            "7.0.9",
            "7.0.8",
            "7.0.7",
            "7.0.6",
            "7.0.5",
            "7.0.4",
            "7.0.3",
            "7.0.2",
            "7.0.1",
            "7.0.0",
            "6.0.23",
            "6.0.22",
            "6.0.21",
            "6.0.20",
            "6.0.19",
            "6.0.18",
            "6.0.17",
            "6.0.16",
            "6.0.15",
            "6.0.14",
            "6.0.13",
            "6.0.12",
            "6.0.11",
            "6.0.10",
            "6.0.9",
            "6.0.8",
            "6.0.7",
            "6.0.6",
            "6.0.5",
            "6.0.4",
            "6.0.3",
            "6.0.2",
            "6.0.1",
            "6.0.0",
            "5.2.17",
            "5.2.16",
            "5.2.15",
            "5.2.14",
            "5.2.13",
            "5.2.12",
            "5.2.11",
            "5.2.10",
            "5.2.9",
            "5.2.8",
            "5.2.7",
            "5.2.6",
            "5.2.5",
            "5.2.4",
            "5.2.3",
            "5.2.2",
            "5.2.1",
            "5.2.0",
            "5.1.2",
            "5.1.1",
            "5.1.0",
            "5.0.21",
            "5.0.20",
            "5.0.19",
            "5.0.18",
            "5.0.17",
            "5.0.16",
            "5.0.15",
            "5.0.14",
            "5.0.13",
            "5.0.12",
            "5.0.11",
            "5.0.10",
            "5.0.9",
            "5.0.8",
            "5.0.7",
            "5.0.6",
            "5.0.5",
            "5.0.4",
            "5.0.3",
            "5.0.2",
            "5.0.1",
            "5.0.0",
            "4.1.16",
            "4.1.15",
            "4.1.14",
            "4.1.13",
            "4.1.12",
            "4.1.11",
            "4.1.10",
            "4.1.9",
            "4.1.8",
            "4.1.7",
            "4.1.6",
            "4.1.5",
            "4.1.4",
            "4.1.3",
            "4.1.2",
            "4.1.1",
            "4.1.0",
            "4.0.6",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "4.0.2",
            "4.0.1",
            "4.0.0",
            "3.0.7",
            "3.0.6",
            "3.0.5",
            "3.0.4",
            "3.0.3",
            "3.0.2",
            "3.0.1",
            "3.0.0",
            "2.2.6",
            "2.2.5",
            "2.2.4",
            "2.2.3",
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.0",
            "1.0.0",
            "0.3.5",
            "0.3.4",
            "0.3.3",
            "0.3.2",
            "0.3.1",
            "0.3",
            "0.2",
            "0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23382.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:37.683137737Z",
      "provider": "osv",
      "references": [
        "https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956",
        "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641",
        "https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-23382",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384446,
  "published_at": "2021-04-26T16:15:07.33+00:00"
}