Vue I18n: `escapeParameter` does not escape named values when the same call also passes a list
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| intlifyvue-i18n | — | Not listed |
| npmvue-i18n |
≥ 12.0.0-alpha.1, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/core |
≥ 12.0.0-alpha.1, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/core-base |
≥ 12.0.0-alpha.1, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npmpetite-vue-i18n |
≥ 12.0.0-alpha.1, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
| npm@intlify/vue-i18n-core |
≥ 12.0.0-alpha.1, < 12.0.0-alpha.5→ 12.0.0-alpha.5 |
12.0.0-alpha.5 |
Original description The description as published by the source.
Vue I18n is the internationalization plugin for Vue.js. From 9.0.0-beta.5 until 11.4.14 and 12.0.0-alpha.5, enabling escapeParameter, called escapeParameterHtml in the Legacy API, does not escape named interpolation values when the same translation call supplies both list and named values because escapeParams() processes only the list branch. Applications that render translations as HTML and pass untrusted named values with a list can insert attacker-controlled markup, including phishing links, forms, and layout changes, and can permit script execution when combined with the srcdoc sanitizer bypass or on releases without the sanitizer. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com