Critical
node-handlebars — security advisory
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.
- Products
- node-handlebars
- Affected versions
- 3:4.0.10-5, 3:4.1.0-1, 3:4.5.3-1, 3:4.7.2-1, 3:4.7.6+~4.1.0-2, 3:4.7.7+~4.1.0-1, 3:4.7.9-5
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23383
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:58 UTC · Revision 1
Source evidence
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.
osv:UBUNTU-CVE-2021-23383
node-handlebars
Fixed versions: Not specified
node-handlebars
Fixed versions: Not specified
node-handlebars
Fixed versions: Not specified
node-handlebars
Fixed versions: Not specified
node-handlebars
Fixed versions: Not specified
node-handlebars
Fixed versions: Not specified
node-handlebars
Fixed versions: Not specified
Complete source record
{
"id": "fbdbc48026fad992a528719f7c525c56342dece2b1876512ee86e0a2888457f0",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-23383",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-23383",
"summary": "The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.",
"evidence": "osv:UBUNTU-CVE-2021-23383",
"products": [
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.0.10-5",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.1.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "3:4.5.3-1",
"evidence": "/affected/1/versions"
},
{
"value": "3:4.7.2-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.7.6+~4.1.0-2",
"evidence": "/affected/2/versions"
},
{
"value": "3:4.7.7+~4.1.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.7.7+~4.1.0-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.7.7+~4.1.0-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.7.7+~4.1.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "3:4.7.9-5",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "node-handlebars",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3:4.7.7+~4.1.0-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2021-23383",
"aliases": [
"UBUNTU-CVE-2021-23383"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3:4.0.10-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.0.10-5"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.0.10-5"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.0.10-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"3:4.1.0-1",
"3:4.5.3-1",
"3:4.7.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.7.2-1"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.7.2-1"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.7.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3:4.7.6+~4.1.0-2",
"3:4.7.7+~4.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.7.7+~4.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3:4.7.7+~4.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.7.7+~4.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3:4.7.7+~4.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.7.7+~4.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3:4.7.7+~4.1.0-1",
"3:4.7.9-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.7.9-5"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.7.9-5"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.7.9-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-handlebars",
"purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3:4.7.7+~4.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23383.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars",
"binary_version": "3:4.7.7+~4.1.0-1"
},
{
"binary_name": "libjs-handlebars.runtime",
"binary_version": "3:4.7.7+~4.1.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:19.649690587Z",
"provider": "osv",
"upstream": [
"CVE-2021-23383"
],
"references": [
"https://ubuntu.com/security/CVE-2021-23383",
"https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427",
"https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1279029",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1279032",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1279031",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279030",
"https://www.cve.org/CVERecord?id=CVE-2021-23383"
]
},
"related_cves": [
{
"value": "CVE-2021-23383",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 355275,
"published_at": "2021-05-04T09:15:00+00:00"
}