NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-23956: seroval affected by Denial of Service via RegExp serialization

highCVSS 3.1 7.5GHSA-hx9m-jf43-8ffr

Overriding RegExp serialization with extremely large patterns can exhaust JavaScript runtime memory during deserialization. Additionally, overriding RegExp serialization with patterns that trigger catastrophic backtracking can lead to ReDoS (Regular Expression Denial of Service).

Published Jan 21, 2026 · Updated May 20, 2026

Affected packages

seroval

Ecosystem
npm
Affected
>= 0.2.0, <= 1.4.0
Fixed in
1.4.1
Check
npm ls seroval

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Overriding RegExp serialization with extremely large patterns can exhaust JavaScript runtime memory during deserialization. Additionally, overriding RegExp serialization with patterns that trigger catastrophic backtracking can lead to ReDoS (Regular Expression Denial of Service).

Mitigation: Seroval introduces disabledFeatures (a bitmask) in serialization/deserialization methods, with Feature.RegExp as a dedicated flag. Users are recommended to configure `disabledFeatures` to disable RegExp serialization entirely.

Credited to tweidinger, lxsmnsyc.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries