{"id":"UBUNTU-CVE-2026-118782","details":"Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, node-forge accepted a PKCS#12 MAC or PKCS#12 password-based encryption iteration count of zero or less. pki.pbe.generatePkcs12Key() then returned a constant key independent of the password and salt, allowing crafted PKCS#12 input processed by forge.pkcs12.pkcs12FromAsn1() to bypass password-based integrity checks. Predictable encryption keys and IVs also affected PKCS#12 PBE using pbeWithSHAAnd3-KeyTripleDES-CBC or pbewithSHAAnd40BitRC2-CBC, including shrouded key bags, encrypted SafeContents, and PKCS#8 ENCRYPTED PRIVATE KEY input processed independently by forge.pki.decryptPrivateKeyInfo(). PBES2/PBKDF2-encrypted content is unaffected. This issue is fixed in version 1.4.1.","modified":"2026-10-31T03:30:10.224842564Z","published":"2026-10-30T00:00:00Z","upstream":["CVE-2026-118782"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-118782"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-118782"},{"type":"REPORT","url":"https://github.com/digitalbazaar/forge/commit/d9584aa56824972858366d5187b3d29e46bf3656"},{"type":"REPORT","url":"https://github.com/digitalbazaar/forge/releases/tag/v1.4.1"},{"type":"REPORT","url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782g"}],"affected":[{"package":{"name":"node-node-forge","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-node-forge?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.5~dfsg-2","0.9.1~dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.1~dfsg-1","binary_name":"libjs-node-forge"},{"binary_name":"node-node-forge","binary_version":"0.9.1~dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118782.json"}},{"package":{"name":"node-node-forge","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-node-forge?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0~dfsg-3","1.2.1~dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.1~dfsg-2","binary_name":"libjs-node-forge"},{"binary_name":"node-node-forge","binary_version":"1.2.1~dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118782.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}