Skip to content

CVE-2025-66020 Valibot has a ReDoS vulnerability in `EMOJI_REGEX`

HighCVSS 7.5 EPSS 0.36%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Valibot helps validate data using a schema. In versions from 0.31.0 to 1.1.0, the EMOJI_REGEX used in the emoji action is vulnerable to a Regular Expression Denial of Service (ReDoS) attack. A short, maliciously crafted string (e.g., <100 characters) can cause the regex engine to consume excessive CPU time (minutes), leading to a Denial of Service (DoS) for the application. This issue has been patched in version 1.2.0.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm valibot(npm) >= 0.31.0, < 1.2.0 1.2.0 Fixed
open-circle valibot = >= 0.31.0, < 1.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm valibot(npm) >= 0.31.0, < 1.2.0 1.2.0
open-circle valibot = >= 0.31.0, < 1.2.0 No fix listed

References