Security fix · CVE-2026-119186
Forge: AES-GCM authentication bypass via unvalidated tagLength option
Published Oct 30, 2026 · catalog updated Oct 30, 2026 · Forge: AES-GCM authentication bypass
Last checked Nov 6, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-119186. EPSS is 0.21%. Act only if a listed version of Forge: AES-GCM authentication bypass is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Forge: AES-GCM authentication bypass).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium5.9
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.21%
- Remediation
- Version ranges on file
- Affected products
- npm node-forge
### Summary The AES-GCM mode in forge.cipher does not validate the tagLength option passed to start(). With a tagLength of 0 or a value that converts to 0 (such as null, false, '' or '0'), the authentication tag is empty, and decipher.finish() returns true for any ciphertext and additional data when the supplied tag is empty or missing. Fixed in node-forge 1.4.1. ### Details in stored the option without validation, and documented it as accepting "0-128". After processing the data, truncates the 16-byte tag with . For a that converts to 0, this is , and truncating by empties the tag. On decryption, the start-time check that the supplied has bytes passes for an empty tag, and the final tag comparison compares two empty strings, so returns for any ciphertext and additional data. NIST SP 800-38D section 5.2.1.2 allows only tag lengths of 128, 120, 112, 104 and 96 bits, plus 64 and 32 bits for certain applications. The fix validates in , for both encryption and decryption. A missing, or uses the default of 128 bits. Any other value is converted with and must be one of 128, 120, 112, 104, 96, 64 or 32; otherwise throws "Invalid tag length.". Numeric strings such as are still accepted. With a validated , an empty tag no longer matches the expected tag length and is rejected. ### Patches Fixed in node-forge 1.4.1. now throws an error unless is one of the tag lengths allowed by NIST SP 800-38D (128, 120, 112, 104, 96, 64 or 32 bits); a or means the default of 128 bits. ### Workarounds Do not derive from received data. Pass a fixed (or omit it to use the default of 128 bits), and check that the received tag has the expected length before calling , for example before . ### Proof of concept Start an AES-GCM decipher with and an empty tag, as an application does when it derives the tag length from a received empty tag, and feed it arbitrary bytes that were never encrypted under the key: values , and (with an empty tag), and with no option, give the same result on <= 1.4.0. The f
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- npm node-forge<= 1.4.0
How to fix CVE-2026-119186
Upgrade
CVE-2026-119186 lists a fix boundary at 1.4.0. Compare the installed build with that boundary before you change production.
Version check
Affected <= 1.4.0
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-119186. EPSS is 0.21%. Act only if a listed version of Forge: AES-GCM authentication bypass is installed.
Which versions are affected?
Compare what you have installed with <= 1.4.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-1284; CWE-354. EPSS 0.21%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 30, 2026 · GitHub Advisory Database
Detected
### Summary The AES-GCM mode in forge.cipher does not validate the tagLength option passed to start(). With a tagLength of 0 or a value that converts to 0 (such as null, false, '' or '0'), the authentication tag is empty, and decipher.finish() returns true for any ciphertext and additional data when the supplied tag is empty or missing. Fixed in node-forge 1.4.1. ### Details in stored the option w
Oct 30, 2026 · GitHub Advisory Database
Updated
### Summary The AES-GCM mode in forge.cipher does not validate the tagLength option passed to start(). With a tagLength of 0 or a value that converts to 0 (such as null, false, '' or '0'), the authentication tag is empty, and decipher.finish() returns true for any ciphertext and additional data when the supplied tag is empty or missing. Fixed in node-forge 1.4.1. ### Details in stored the option w
Sources
- CVE.orgVulnerability recordCVE-2026-119186
Official CVE identifier
cve.org - GitHub Advisory DatabasePackage advisoryGHSA-5cwg-6vw7-rj6p
Forge: AES-GCM authentication bypass via unvalidated tagLength option
github.com - GitLab Advisory DatabasePackage advisoryCVE-2026-119186
The AES-GCM mode in forge.cipher does not validate the tagLength option passed to start(). With a tagLength of 0 or a value that converts to 0 (such as null, false, '' or '0'), the authentication tag is empty, and decipher.finish() returns true for any ciphertext and additional data when the supplied tag is empty or missing. Fixed in node-forge 1.4.1.
advisories.gitlab.com
References
Freshness
Last verified in this catalog Nov 6, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- GitHub Advisory DatabaseNov 6, 2026
- GitLab Advisory DatabaseNov 3, 2026
- CVE.orgOct 31, 2026