Intlify vue-i18n
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
Vue I18n is the internationalization plugin for Vue.js. From 11.1.10 until 11.4.14 and from 12.0.0-alpha.4 until 12.0.0-alpha.5, sanitizeTranslatedHtml() escapes markup and event-handler text inside an iframe srcdoc value but leaves the srcdoc attribute active. Browsers decode the character references and parse the value as a same-origin nested HTML document, allowing attacker-controlled parameters or translation content placed in srcdoc to execute script when applications enable escapeParameter and render translations as HTML through v-html. Versions 9.14.5 and 10.0.8 are also affected and are no longer supported, while i18n-t rendering is not affected. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- = 9.14.5
- = 10.0.8
- >= 11.1.10, < 11.4.14
- >= 12.0.0-alpha.4, < 12.0.0-alpha.5
Fixed in 11.4.14, 12.0.0-alpha.5
Mitigation
Upgrade vue-i18n to 11.4.14 or 12.0.0-alpha.5 or later.
References
- Vendor advisory github.com/intlify/vue-i18n/security/advisorie…
- Patch github.com/intlify/vue-i18n/pull/2679
- Patch github.com/intlify/vue-i18n/commit/43391d20e7c…
2 more
- Release notes github.com/intlify/vue-i18n/releases/tag/v11.4…
- Release notes github.com/intlify/vue-i18n/releases/tag/v12.0…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.