HighFix available
node-trim-newlines — security advisory
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
- node-trim-newlines
- Affected versions
- 1.0.0-1, 3.0.0+~3.0.0-1
- Fixed versions
- 1.0.0-1ubuntu0.18.04.1, 1.0.0-1ubuntu0.20.04.1
- CVEs
- CVE-2021-33623
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:59 UTC · Revision 1
Source evidence
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:UBUNTU-CVE-2021-33623
node-trim-newlines
Fixed versions: 1.0.0-1ubuntu0.18.04.1
node-trim-newlines
Fixed versions: 1.0.0-1ubuntu0.20.04.1
node-trim-newlines
Fixed versions: Not specified
node-trim-newlines
Fixed versions: Not specified
node-trim-newlines
Fixed versions: Not specified
node-trim-newlines
Fixed versions: Not specified
Complete source record
{
"id": "2780aae6cac66fab6d2745a3519342931b604b224197163c78adca014b77dc47",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-33623",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-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:UBUNTU-CVE-2021-33623",
"products": [
{
"name": {
"value": "node-trim-newlines",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.0.0-1ubuntu0.18.04.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "1.0.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-trim-newlines",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.0.0-1ubuntu0.20.04.1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "1.0.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-trim-newlines",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.0+~3.0.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-trim-newlines",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.0+~3.0.0-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-trim-newlines",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.0+~3.0.0-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-trim-newlines",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.0+~3.0.0-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-33623",
"aliases": [
"UBUNTU-CVE-2021-33623"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.0-1ubuntu0.18.04.1"
}
]
}
],
"package": {
"name": "node-trim-newlines",
"purl": "pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-trim-newlines",
"binary_version": "1.0.0-1ubuntu0.18.04.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.0-1ubuntu0.20.04.1"
}
]
}
],
"package": {
"name": "node-trim-newlines",
"purl": "pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-trim-newlines",
"binary_version": "1.0.0-1ubuntu0.20.04.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-trim-newlines",
"purl": "pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3.0.0+~3.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-trim-newlines",
"binary_version": "3.0.0+~3.0.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-trim-newlines",
"purl": "pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.0.0+~3.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-trim-newlines",
"binary_version": "3.0.0+~3.0.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-trim-newlines",
"purl": "pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.0.0+~3.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-trim-newlines",
"binary_version": "3.0.0+~3.0.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-trim-newlines",
"purl": "pkg:deb/ubuntu/node-trim-newlines?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.0.0+~3.0.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33623.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-trim-newlines",
"binary_version": "3.0.0+~3.0.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:19.932969667Z",
"provider": "osv",
"upstream": [
"CVE-2021-33623"
],
"references": [
"https://ubuntu.com/security/CVE-2021-33623",
"https://www.npmjs.com/package/trim-newlines",
"https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1",
"https://ubuntu.com/security/notices/USN-5999-1",
"https://www.cve.org/CVERecord?id=CVE-2021-33623"
]
},
"related_cves": [
{
"value": "CVE-2021-33623",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355301,
"published_at": "2021-05-28T18:15:00+00:00"
}