Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-33623

The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.

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

Source evidence

CVE-2021-33623

core-osv · Original source

Published 28 May 2021, 18:15 UTC

The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.

osv:CVE-2021-33623
Complete source record
{
  "id": "c68cce05fd79cd0875262f590b999a6f1dea9692b3e064d5e2e5adaf57d139b5",
  "url": "https://osv.dev/vulnerability/CVE-2021-33623",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-33623",
    "summary": "The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.",
    "evidence": "osv:CVE-2021-33623",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-33623",
      "aliases": [
        "CVE-2021-33623",
        "GHSA-7p7h-4mm5-852v"
      ],
      "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/sindresorhus/trim-newlines",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7bd2272fb55d932562aee3ef20b300a02a23377e"
                },
                {
                  "fixed": "b63718391b436e87fe9b29052c1b9274786e89fa"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b63718391b436e87fe9b29052c1b9274786e89fa"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v4.0.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-33623.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:44.984542532Z",
      "provider": "osv",
      "references": [
        "https://www.npmjs.com/package/trim-newlines",
        "https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html",
        "https://security.netapp.com/advisory/ntap-20210702-0007/",
        "https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:trim-newlines_project:trim-newlines:*:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "trim-newlines_project:trim-newlines",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "3.0.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-33623",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386070,
  "published_at": "2021-05-28T18:15:07.537+00:00"
}