Advisory

GHSA-hx9m-jf43-8ffr

Also known as: CVE-2026-23956

Summary

seroval affected by Denial of Service via RegExp serialization

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-21 16:57 UTC
Modified
2026-05-20 01:00 UTC

Affected packages and fixes

seroval

npm · All systems

Affected

  • introduced 0.2.0, fixed 1.4.1 (semver)

Fixed versions

1.4.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences