## Seroval: Script injection through RegExp sources in serialized output

- 種別: advisory
- 重大度: medium
- 関連技術: nodejs
- CVE: CVE-2026-116582
- 公開日時: 2026-10-28T21:17:31.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-9wx9-5pv9-3349)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-9wx9-5pv9-3349

影響: npm:seroval >= 1.5.5, < 1.6.10 → 1.6.10, npm:seroval < 1.0.0 → 1.0.0
seroval writes a RegExp as a regular expression literal. In affected versions, the element that the serialized output is placed in, and run script in the page. Details seroval escapes element. RegExp sources did not get the same escaping: - Versions before 1.0.0 wrote the source as is. - Version 1.5.5 stopped escaping element, as server rendering usually does. In that case an attacker can run script in the page of any user who receives that output. Patches Fixed in 1.6.10. A RegExp whose source…