NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
HIGH severity

Vue I18n: sanitizeTranslatedHtml allows DOM XSS via javascript: URLs after an unquoted attribute value that contains a quoteGHSA-7356-3q55-jvxm

HIGHFix: intlify/vue-i18n#2769

GHSA-7356-3q55-jvxm is a high-severity (CVSS 7.2) Cross-site Scripting (XSS) vulnerability in vue-i18n. A fix is available for vue-i18n — see the affected versions and patch details below.

Also known asCVE-2026-144407
Published
Updated
Affected
24 pkgs
Patched
12 / 24
Exploits
None indexed
Exploitation data as of Dec 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for GHSA-7356-3q55-jvxm.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs27th percentile — riskier than 27% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

24 pkgs affected
📦vue-i18n📦vue-i18n📦vue-i18n📦vue-i18n📦petite-vue-i18n📦petite-vue-i18n📦petite-vue-i18n📦petite-vue-i18n+16 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

Description

Summary

When escapeParameter is enabled (escapeParameterHtml in the Legacy API), Vue I18n passes the translated string through sanitizeTranslatedHtml(). The sanitizer replaces javascript: URLs in href, xlink:href, src, action and formaction with about:blank.

It finds attributes with regular expressions, not with an HTML tokenizer. The two disagree when an unquoted attribute value contains a quote character. HTML allows that: x=y"z="q is one attribute, x, with the value y"z="q. The sanitizer instead reads z="q href=" as a quoted attribute named z, and so it consumes the opening quote of the real href. The real href="javascript:..." is then never inspected:

<iframe x=y"z="q src="javascript:alert(document.domain)"></iframe>
<a x=y"z="q href="javascript:alert(document.domain)">click</a>

Both strings come out of sanitizeTranslatedHtml() unchanged, and the browser parses them with src / href set to the javascript: URL. This bypasses the javascript: URL check that the sanitizer has had since the fix for CVE-2025-53892 (GHSA-x8qp-wqqm-57ph), as GHSA-83rm-6c8r-g728 (srcdoc) and GHSA-473g-cvf6-mfxj (SVG links) did.

Checked on packages/shared/src/sanitize.ts at master (last change a66ace0a, 2026-11-03), which is v11.4.18, the latest release.

Details

sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts (v11.4.18) works in these steps:

  1. Quoted attributes, double quotes and then single quotes:
    html = html.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${sanitizeAttributeValue(attrName, attrValue)}"`)
    html = html.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, ...)
    
    sanitizeAttributeValue applies the javascript: check only when attrName is a URL attribute.
  2. Event handlers, srcdoc and <base|animate|set|script> are neutralized with global patterns.
  3. Unquoted URL attributes:
    const unquotedUrlAttributePattern = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi
    

For the input <a x=y"z="q href="javascript:alert(1)">:

  • Step 1 scans left to right for name="...". x=y is not followed by a quote. The first match is z="q href=": name z, value q href=. z is not a URL attribute and the value needs no escaping, so nothing changes. The scan resumes after that closing quote, at javascript:alert(1)">, where no name="..." follows.
  • Step 3 finds href=, but the value class [^\s"'=<>]+cannot start with"`, so there is no match.
  • The steps for event handlers, srcdoc and dangerous elements do not apply.

The browser reads the same tag as two attributes. In the HTML tokenizer's "attribute value (unquoted)" state, " is a parse error but it is kept in the value:

x    = y"z="q
href = javascript:alert(1)

The single-quote form <a x=y'z='q href='javascript:alert(1)'> desynchronizes the second expression in the same way.

Event handlers are not reachable with this trick, because their pattern is global and does not depend on quoting. The bypass is limited to javascript: URLs.

Suggested fix

  • Tokenize start tags the way HTML does (attribute name, then an unquoted, single-quoted or double-quoted value) and run the URL, event-handler and srcdoc checks on every attribute the tokenizer returns. Regular expressions over the whole string cannot agree with the parser on where an attribute starts.
  • A smaller hardening that closes this case: in the unquoted pass, let the value of a URL attribute start with a quote (strip one leading quote before hasJavascriptScheme), or add a pass that checks (?:href|xlink:href|src|action|formaction)\s*=\s*["']?<value> everywhere, regardless of what steps 1 and 2 matched.
  • Add the three strings from the proof of concept as test cases.

Proof of concept

1. The sanitizer leaves the strings unchanged. I re-typed the patterns of sanitize.ts into a stand-alone script (no package loaded) and printed input and output. Output of my run:

control: quoted href           | <a href="javascript:alert(1)">x</a>
                                -> <a href="about:blank">x</a>
control: unquoted src          | <iframe src=javascript:alert(1)>
                                -> <iframe src=about:blank>
control: entity-obfuscated     | <a href="jav&#x09;ascript&colon;alert(1)">x</a>
                                -> <a href="about:blank">x</a>
candidate A (a href)           | <a x=y"z="q href="javascript:alert(1)">x</a>
                                -> <a x=y"z="q href="javascript:alert(1)">x</a>
candidate B (iframe src)       | <iframe x=y"z="q src="javascript:alert(1)"></iframe>
                                -> <iframe x=y"z="q src="javascript:alert(1)"></iframe>
candidate C (single quotes)    | <a x=y'z='q href='javascript:alert(1)'>x</a>
                                -> <a x=y'z='q href='javascript:alert(1)'>x</a>

2. The browser parses them as javascript: URLs. new DOMParser().parseFromString(html, 'text/html') in Chrome, attributes of the first element:

A       x = y"z="q    href = javascript:alert(1)
IFRAME  x = y"z="q    src  = javascript:alert(1)
A       x = y'z='q    href = javascript:alert(1)

3. In an application. I did not run this step with the published package; it is the setup used in the earlier sanitizer advisories:

import { createI18n } from 'vue-i18n'

const i18n = createI18n({
  legacy: false,
  locale: 'en',
  escapeParameter: true,
  messages: {
    en: { banner: '<iframe x=y"z="q src="javascript:alert(document.domain)"></iframe>' }
  }
})
// template: <p v-html="$t('banner')"></p>

Impact

DOM XSS in the origin of the application for anyone who relies on escapeParameter / sanitizeTranslatedHtml to neutralize active content in translation messages that are rendered with v-html (or on the server), when the message markup can be influenced by an attacker: translations loaded from a CMS, a translation platform, user-contributed locales, and similar.

A parameter alone cannot trigger it: parameters are escaped by escapeHtml, which turns quotes and = into character references. The precondition is the same as "markup in a message" in GHSA-83rm-6c8r-g728 and GHSA-473g-cvf6-mfxj.

Severity: for the <iframe src> form, which needs no interaction, I used the vector of GHSA-83rm-6c8r-g728: CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N (7.2). The <a href> form needs a click (UI:R, 6.1).

Affected packages share the sanitizer: vue-i18n, petite-vue-i18n, @intlify/core, @intlify/core-base, @intlify/vue-i18n-core, @intlify/shared.

CWE-79 (Cross-site Scripting).

I found no existing advisory or issue for this case. The published sanitizer advisories cover event handlers (GHSA-x8qp-wqqm-57ph), srcdoc (GHSA-83rm-6c8r-g728), SVG links (GHSA-473g-cvf6-mfxj) and <script> under SSR (GHSA-jrxq-gc2q-9357).

Prepared with AI assistance.

Patches

Fixed in vue-i18n 11.4.19 and 12.0.0-alpha.10, and in the same versions of petite-vue-i18n, @intlify/core-base, @intlify/core, @intlify/vue-i18n-core and @intlify/shared.

sanitizeTranslatedHtml() now reads tags and attributes with the rules of the HTML tokenizer, so that it agrees with browsers on where each attribute starts and ends, and it checks every attribute of every start tag. A tag, a comment, or an element like <textarea> that is not closed at the end of a translation is turned into text, so that it cannot take in the rest of the page when the HTML is rendered on the server.

v9 and v10 are not supported, and do not get a fix.

Workarounds

Do not render translation messages from untrusted sources with v-html, even with escapeParameter enabled. Use Component interpolation instead.

Related

Affected Packages

24 total 12 fixed
EcosystemPackageVulnerable rangeFix
📦npmvue-i18nall versionsNo fix
📦npmvue-i18nall versionsNo fix
📦npmvue-i18n≥ 11.1.10&&< 11.4.1911.4.19npm install vue-i18n@11.4.19
📦npmvue-i18n≥ 12.0.0-alpha.4&&< 12.0.0-alpha.1012.0.0-alpha.10npm install vue-i18n@12.0.0-alpha.10
📦npmpetite-vue-i18nall versionsNo fix
📦npmpetite-vue-i18nall versionsNo fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for vue-i18n, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    A fix is available for GHSA-7356-3q55-jvxm; check the affected-versions list above or the advisory for the patched release of vue-i18n, then make sure no transitive dependency still pins the vulnerable range.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

This flaw is evaluated as a Moderate severity impact because successful exploitation requires specific non-default application configurations, including enabling parameter escaping alongside rendering untrusted translation content as raw HTML. Under these conditions, a parsing discrepancy in the HTML sanitization…

Workaround published by Red Hat
To reduce exposure to this vulnerability, avoid rendering untrusted or user-controlled translation strings as raw HTML (such as through the `v-html` directive or server-side rendering). Ensure that translation parameters and keys originate strictly from trusted sources. Caveats: Avoiding raw HTML rendering in translated strings may prevent intended rich text formatting from displaying in affected application components.
Source: Red Hat security advisory for GHSA-7356-3q55-jvxm (CC BY 4.0)

Frequently Asked Questions

### Summary When `escapeParameter` is enabled (`escapeParameterHtml` in the Legacy API), Vue I18n passes the translated string through `sanitizeTranslatedHtml()`. The sanitizer replaces `javascript:` URLs in `href`, `xlink:href`, `src`, `action` and `formaction` with `about:blank`. It finds attributes with regular expressions, not with an HTML tokenizer. The two disagree when an **unquoted** attribute value contains a quote character. HTML allows that: `x=y"z="q` is one attribute, `x`, with the value `y"z="q`. The sanitizer instead reads `z="q href="` as a quoted attribute named `z`, and so
O3 Security · Impact-Aware SCA

Is GHSA-7356-3q55-jvxm in your dependencies?

Find it across npm, including transitive dependencies.

Vue I18n: sanitizeTranslatedHtml allows DOM XSS via…