CVE-2022-24771
JavaScript vulnerability analysis and mitigation

Overview

Forge (also called node-forge), a native implementation of Transport Layer Security in JavaScript, was found to have a vulnerability in versions prior to 1.3.0. The vulnerability (CVE-2022-24771) involves lenient checking of the digest algorithm structure in RSA PKCS#1 v1.5 signature verification code. This vulnerability was discovered and reported by Moosa Yahyazadeh from the University of Iowa (GitHub Advisory).

Technical details

The vulnerability stems from the RSA PKCS#1 v1.5 signature verification code being too permissive when checking the digest algorithm structure. This leniency allows an attacker to craft a structure that can steal padding bytes and utilize the unchecked portion of the PKCS#1 encoded message to forge a signature, particularly when a low public exponent is being used. The vulnerability has a CVSS v3.1 base score of 7.5 (HIGH) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N, indicating network accessibility with low attack complexity and no required privileges or user interaction (NVD).

Impact

The vulnerability can lead to signature forgery, allowing attackers to bypass signature verification mechanisms. This primarily affects the integrity of signed data, as indicated by the CVSS metrics showing high impact on integrity but no impact on confidentiality or availability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in node-forge version 1.3.0. The fix includes making the ASN.1 fromDer function more strict by default, ensuring all input bytes are parsed, and implementing proper validation of the DigestInfo structure and algorithm identifiers. Users should upgrade to version 1.3.0 or later as there are no known workarounds (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management