CVE-2026-23956

seroval affected by Denial of Service via RegExp serialization

Published Jan 22, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. In versions 0.2.0 through 1.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). This issue has been fixed in version 1.4.1.

Analysis

AI-generated

Technical impact

Seroval, a library that stringifies JavaScript values beyond JSON.stringify capabilities, has a flaw that affects versions 0.2.0 through 1.4.0. The vulnerability is an instance of CWE-1333, runtime memory exhaustion caused by catastrophically large or backtracking‑heavy regular expressions. An attacker can override RegExp serialization with an extremely large pattern or a pattern designed for catastrophic backtracking, causing the JavaScript runtime to exhaust memory during deserialization and resulting in a denial of service. These flaws can be triggered simply by supplying crafted input to the deserialization process, without authentication, and were fixed in version 1.4.1.

Affected Systems

The library Seroval is published by lxsmnsyc as an NPM package for Node.js. Vulnerable releases span 0.2.0 to 1.4.0. Any installations using those versions that perform deserialization of external or user‑supplied data are at risk.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity impact, while the EPSS score of less than 1% suggests a low probability of exploitation at present. Nevertheless, the vulnerability can be triggered easily by providing a specially crafted string to any code that uses Seroval for deserialization, without the need for authentication. The lack of a CISA KEV listing means it has not yet been observed in the wild, but the combination of widespread use of the package and the severe denial of service potential warrants proactive attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Seroval to version 1.4.1 or later to incorporate the fix.
  • Remove or limit custom RegExp serialization when using Seroval, or constrain pattern size to prevent memory exhaustion.
  • Validate or sanitize any data before it is passed to Seroval for deserialization, and avoid deserializing untrusted input whenever possible.

Generated by OpenCVE AI on May 20, 2026 at 02:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hx9m-jf43-8ffr seroval affected by Denial of Service via RegExp serialization
History
Type Values Removed Values Added
Description seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. In versions 1.4.0 and below, 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). This issue has been fixed in version 1.4.1. seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. In versions 0.2.0 through 1.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). This issue has been fixed in version 1.4.1.
References
Type Values Removed Values Added
CPEs cpe:2.3:a:lxsmnsyc:seroval:*:*:*:*:*:*:*:* cpe:2.3:a:lxsmnsyc:seroval:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
CPEs cpe:2.3:a:lxsmnsyc:seroval:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Lxsmnsyc
Lxsmnsyc seroval
Vendors & Products Lxsmnsyc
Lxsmnsyc seroval
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. In versions 1.4.0 and below, 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). This issue has been fixed in version 1.4.1.
Title seroval affected by Denial of Service via RegExp serialization
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 20, 2026, 12:53 AM
Reserved
Jan 19, 2026, 2:49 PM
Status
Modified
Published
Jan 22, 2026, 2:15 AM
Modified
Jun 17, 2026, 10:22 AM
Severity
Important
Public date
Jan 22, 2026, 1:23 AM