node-yarnpkg — security advisory
The signature verification routine in install.sh in yarnpkg/website through 2018-06-05 only verifies that the yarn release is signed by any (arbitrary) key in the local keyring of the user, and does not pin the signature to the yarn release key, which allows remote attackers to sign tampered yarn release packages with their own key.
- Products
- node-yarnpkg
- Affected versions
- 1.13.0-1build1, 1.13.0-3, 1.19.1-1, 1.22.10+~cs22.25.14-3, 1.22.10+~cs22.25.14-4, 1.22.10+~cs22.25.14-5, 1.22.10+~cs22.25.14-8, 1.22.19+~cs24.27.18-2, 1.22.19+~cs24.27.18-4, 1.22.4-2, 4.0.2+dfsg-3, 4.1.0+dfsg-1, 4.1.0+dfsg-6ubuntu2, 4.1.0+dfsg-7ubuntu1
- Fixed versions
- Not specified
- CVEs
- CVE-2018-12556
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:25 UTC · Revision 1
Source evidence
The signature verification routine in install.sh in yarnpkg/website through 2018-06-05 only verifies that the yarn release is signed by any (arbitrary) key in the local keyring of the user, and does not pin the signature to the yarn release key, which allows remote attackers to sign tampered yarn release packages with their own key.
osv:UBUNTU-CVE-2018-12556
node-yarnpkg
Fixed versions: Not specified
node-yarnpkg
Fixed versions: Not specified
node-yarnpkg
Fixed versions: Not specified
node-yarnpkg
Fixed versions: Not specified
node-yarnpkg
Fixed versions: Not specified
node-yarnpkg
Fixed versions: Not specified
Complete source record
{
"id": "2281d2bef6c12c00235e298b4347cd4a330115ed39877881a0d41111bba36b8a",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2018-12556",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2018-12556",
"summary": "The signature verification routine in install.sh in yarnpkg/website through 2018-06-05 only verifies that the yarn release is signed by any (arbitrary) key in the local keyring of the user, and does not pin the signature to the yarn release key, which allows remote attackers to sign tampered yarn release packages with their own key.",
"evidence": "osv:UBUNTU-CVE-2018-12556",
"products": [
{
"name": {
"value": "node-yarnpkg",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.13.0-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "1.13.0-3",
"evidence": "/affected/0/versions"
},
{
"value": "1.19.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.22.4-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-yarnpkg",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.22.10+~cs22.25.14-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.22.10+~cs22.25.14-4",
"evidence": "/affected/1/versions"
},
{
"value": "1.22.10+~cs22.25.14-5",
"evidence": "/affected/1/versions"
},
{
"value": "1.22.10+~cs22.25.14-8",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-yarnpkg",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.22.19+~cs24.27.18-2",
"evidence": "/affected/2/versions"
},
{
"value": "1.22.19+~cs24.27.18-4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-yarnpkg",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.0.2+dfsg-3",
"evidence": "/affected/3/versions"
},
{
"value": "4.1.0+dfsg-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-yarnpkg",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.1.0+dfsg-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.1.0+dfsg-6ubuntu2",
"evidence": "/affected/4/versions"
},
{
"value": "4.1.0+dfsg-7ubuntu1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-yarnpkg",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.1.0+dfsg-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2018-12556",
"aliases": [
"UBUNTU-CVE-2018-12556"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-yarnpkg",
"purl": "pkg:deb/ubuntu/node-yarnpkg?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.13.0-1build1",
"1.13.0-3",
"1.19.1-1",
"1.22.4-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12556.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "yarnpkg",
"binary_version": "1.22.4-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-yarnpkg",
"purl": "pkg:deb/ubuntu/node-yarnpkg?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.22.10+~cs22.25.14-3",
"1.22.10+~cs22.25.14-4",
"1.22.10+~cs22.25.14-5",
"1.22.10+~cs22.25.14-8"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12556.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "yarnpkg",
"binary_version": "1.22.10+~cs22.25.14-8"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-yarnpkg",
"purl": "pkg:deb/ubuntu/node-yarnpkg?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.22.19+~cs24.27.18-2",
"1.22.19+~cs24.27.18-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12556.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "yarnpkg",
"binary_version": "1.22.19+~cs24.27.18-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-yarnpkg",
"purl": "pkg:deb/ubuntu/node-yarnpkg?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.0.2+dfsg-3",
"4.1.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12556.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "yarnpkg",
"binary_version": "4.1.0+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-yarnpkg",
"purl": "pkg:deb/ubuntu/node-yarnpkg?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.1.0+dfsg-1",
"4.1.0+dfsg-6ubuntu2",
"4.1.0+dfsg-7ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12556.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "yarnpkg",
"binary_version": "4.1.0+dfsg-7ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-yarnpkg",
"purl": "pkg:deb/ubuntu/node-yarnpkg?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.1.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12556.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "yarnpkg",
"binary_version": "4.1.0+dfsg-1"
}
]
}
}
],
"modified": "2026-10-17T12:54:50.317530248Z",
"provider": "osv",
"upstream": [
"CVE-2018-12556"
],
"references": [
"https://ubuntu.com/security/CVE-2018-12556",
"https://github.com/RUB-NDS/Johnny-You-Are-Fired",
"https://github.com/RUB-NDS/Johnny-You-Are-Fired/blob/master/paper/johnny-fired.pdf",
"https://github.com/yarnpkg/website/commits/master",
"https://www.openwall.com/lists/oss-security/2019/04/30/4",
"https://neopg.io/blog/yarn-signature-bypass/",
"https://www.cve.org/CVERecord?id=CVE-2018-12556"
]
},
"related_cves": [
{
"value": "CVE-2018-12556",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 353563,
"published_at": "2019-05-16T17:29:00+00:00"
}