# CVE-2026-118776: Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB decryption

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T18:37:32.362Z
- Modified: 2026-11-10T16:15:04.155Z
- Also known as: GHSA-2vgq-wchc-25w7
- Weaknesses: CWE-20, CWE-354
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used decipher.finish(), CBC and ECB modes, PKCS#7 padding to process the relevant input or security decision. node-forge validated only the final byte of PKCS#7 padding during CBC and ECB decryption and accepted zero, oversized, or mismatched padding bytes. Malformed ciphertext could consequently be accepted and up to four plaintext blocks could be silently removed, causing an integrity failure in applications that treated successful decryption as proof of valid padding. This issue is fixed in version 1.4.1.

(As written by CVE List.)

## Affected

- digitalbazaar forge: < 1.4.1; before 1.4.1
- node-forge (npm): before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-2vgq-wchc-25w7> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/digitalbazaar/forge/commit/81774ff99e2da64aec9a43591df45a360040c136> (patch, web)
- <https://github.com/digitalbazaar/forge/releases/tag/v1.4.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-118776> (advisory)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2026-118776](https://www.cve.org/CVERecord?id=CVE-2026-118776), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-2vgq-wchc-25w7](https://github.com/advisories/GHSA-2vgq-wchc-25w7), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-118776](https://nvd.nist.gov/vuln/detail/CVE-2026-118776), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-118776 · Whole record: https://cve.day/CVE-2026-118776.json · Rebuilt by cve.day 2026-11-25T22:59:47.821Z
