Vulnerability library
Security checkOctober 28, 2026

Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages

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

High severitynpmpetite-vue-i18n

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer escapes < and > in attribute values and neutralizes event handler attributes such as onerror, but it does not handle the srcdoc attribute of <iframe>.

Recommendation

Update the petite-vue-i18n package to the latest compatible version. Followings are version details:

  • Affected version(s): **= 12.0.0-alpha.4 >= 11.1.10, < 11.4.14 = 10.0.8 = 9.14.5**
  • Patched version(s): **12.0.0-alpha.5 11.4.14**

References

Could your website be exposed too?

SmartScanner can check your website for Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages and gives you actionable findings to investigate.

Start a free scan

Related Issues

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