Vulnerability library
Security checkOctober 28, 2026

Seroval: Script injection through RegExp sources in serialized output

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

Medium severitynpmseroval

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

seroval writes a RegExp as a regular expression literal. In affected versions, the < character in a RegExp source is written without escaping. A source built from untrusted input can then end the HTML <script> element that the serialized output is placed in, and run script in the page.

Recommendation

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

  • Affected version(s): **< 1.0.0 >= 1.5.5, < 1.6.10**
  • Patched version(s): **1.0.0 1.6.10**

References

Could your website be exposed too?

SmartScanner can check your website for Seroval: Script injection through RegExp sources in serialized output and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 28, 2026