CVE-2025-32029
JavaScript vulnerability analysis and mitigation

Overview

ts-asn1-der, a collection of utility classes for encoding ASN.1 data following DER rules, contains a vulnerability identified as CVE-2025-32029. The vulnerability was discovered and disclosed on April 6, 2025, affecting versions prior to 1.0.4. The issue involves incorrect number DER encoding that can lead to denial of service for absolute values in a specific range (GitHub Advisory).

Technical details

The vulnerability stems from a flaw in the arithmetic implementation within the numBitLen function. When processing absolute values in the range between 231 and 232 - 1, the function fails to account for potential negative results when applying the right shift (>>) operator. This oversight leads to an infinite loop condition. The vulnerability has been assigned a CVSS v4.0 base score of 6.9 (Medium) with the vector string CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N (GitHub Advisory, NVD).

Impact

When exploited, this vulnerability can cause a denial of service condition through an infinite loop when processing certain numeric values. Additionally, the implementation issues result in incorrect value encoding, potentially affecting the integrity of ASN.1 data processing (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.0.4 of ts-asn1-der. For users unable to upgrade, a workaround is available by implementing input validation for Asn1Integer to ensure values are within the safe range (not smaller than -231 + 1 and no larger than 231 - 1). Alternatively, input can be provided as a pre-computed DER-encoded buffer, though this requires external DER encoding computation (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-2026-22787HIGH8.7
  • JavaScriptJavaScript
  • html2pdf.js
NoYesJan 14, 2026
CVE-2026-22820MEDIUM6.3
  • JavaScriptJavaScript
  • outray
NoYesJan 14, 2026
CVE-2026-22819MEDIUM5.9
  • JavaScriptJavaScript
  • outray
NoYesJan 14, 2026
CVE-2026-22036LOW3.7
  • JavaScriptJavaScript
  • node-undici
NoYesJan 14, 2026
GHSA-73rr-hh4g-fpgxLOWN/A
  • JavaScriptJavaScript
  • diff
NoYesJan 14, 2026

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