Vulnerability library
Security checkNovember 26, 2025

Valibot has a ReDoS vulnerability in `EMOJI_REGEX`

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmvalibot

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the valibot package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 0.31.0, < 1.2.0
  • Patched version(s): 1.2.0

References

Could your website be exposed too?

SmartScanner can check your website for Valibot has a ReDoS vulnerability in `EMOJI_REGEX` and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 26, 2025