79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

Vue I18n Sanitizer Bypass Enables DOM XSS (CVE-2026-144407)

Vue I18n before 11.4.19 lets an unquoted attribute hide a javascript: URL from its sanitizer, enabling DOM XSS when translations are rendered as HTML.

TL;DR

  • Vue I18n finds attributes with regular expressions, and an unquoted attribute value that contains a quote makes those expressions disagree with the browser. CVE-2026-144407 carries CVSS v3.1 7.2 High.
  • Every release from 11.1.10 to 11.4.18, and 12.0.0-alpha.4 to 12.0.0-alpha.9, is affected when escapeParameter is enabled and translations are rendered as HTML. Releases 9.14.5 and 10.0.8 are affected and unsupported.
  • The vendor advisory includes a public proof of concept, and CISA's SSVC assessment records exploitation as poc. No in-the-wild exploitation is reported, and the CVE is not in CISA KEV as of 2026-12-04.
  • Upgrade to 11.4.22 or later, or 12.0.0-alpha.13 or later. The later builds also fix the companion CVE-2026-144406; "How do I fix it?" gives the commands and a workaround.

Am I affected?

You are affected if your application enables escapeParameter and renders a translation that an attacker can influence as HTML. All of these must hold:

  • The application enables escapeParameter (or escapeParameterHtml in the Legacy API), which turns on sanitizeTranslatedHtml().
  • The translation text comes from a source an attacker can control, for example a locale file, a database field, a CMS or a user profile.
  • The application renders the translated string as HTML, through v-html or server-side rendering.
  • The installed vue-i18n version is in an affected range, or an application imports the same sanitizer from @intlify/core-base, @intlify/shared or @intlify/vue-i18n-core directly.

An application that never enables escapeParameter does not call the vulnerable sanitizer. An application that renders translations as text, or interpolates them with component interpolation, does not pass them through the HTML sink. The version alone does not decide exposure.

Release line Affected versions Fixed version
Vue I18n 11.x 11.1.10 to 11.4.18 11.4.19 for this CVE; 11.4.22 fixes the companion CVE-2026-144406
Vue I18n 12.x alpha 12.0.0-alpha.4 to 12.0.0-alpha.9 12.0.0-alpha.10 for this CVE; 12.0.0-alpha.13 fixes the companion
Vue I18n 9.x 9.14.5 none; 9.x is unsupported
Vue I18n 10.x 10.0.8 none; 10.x is unsupported

The same fix ships in the matching versions of petite-vue-i18n, @intlify/core, @intlify/core-base, @intlify/shared and @intlify/vue-i18n-core. If the project pins one of those packages directly, update it with vue-i18n.

Check the installed version:

npm ls vue-i18n
yarn why vue-i18n
pnpm why vue-i18n

Read the lockfile entry when the package is transitive:

grep -A2 '"node_modules/vue-i18n"' package-lock.json
grep -A2 '^vue-i18n@' yarn.lock
grep -A2 'vue-i18n' pnpm-lock.yaml

Check whether the application enables the option and renders the result as HTML:

grep -rn "escapeParameter" src/
grep -rn "v-html" src/

A match for both means the project uses the affected path. A bundled copy inside a widget or a server-rendered page also needs its own check.

How do I fix it?

Upgrade to Vue I18n 11.4.22 or later, or 12.0.0-alpha.13 or later, rebuild the bundle and confirm the version the application loads.

  1. Install the fixed release with the package manager the project uses.
  2. Rebuild the front-end bundle and any server-rendered build.
  3. Confirm the resolved version with npm ls vue-i18n.
  4. If the library is loaded from a CDN, change the pinned URL and clear the cached copy.
  5. Search the translations for the payload shape from the advisory and remove any that are not trusted content.
npm install vue-i18n@11.4.25
yarn add vue-i18n@11.4.25
pnpm add vue-i18n@11.4.25

The current release is 11.4.25, published on 2026-12-02. The minimum that fixes both this CVE and the companion CVE-2026-144406 is 11.4.22; the minimum for the 12.x alpha line is 12.0.0-alpha.13.

If you cannot upgrade yet, stop rendering translations from untrusted sources with v-html, even with escapeParameter enabled. Use component interpolation, which inserts the translated text as text nodes. The workaround changes the rendering design and does not repair the sanitizer.

Releases 9.14.5 and 10.0.8 do not get a fix. The vendor says the 9.x and 10.x lines are unsupported; a project on those branches has to move to 11.x.

What is the root cause?

The sanitizer finds attributes with regular expressions that disagree with the HTML tokenizer about where an attribute starts and ends. An unquoted value may legally contain a quote, and the regular expressions then consume the opening quote of the next attribute, so that attribute is never checked.

The vulnerable code is sanitizeTranslatedHtml() in packages/shared/src/sanitize.ts at 11.4.18. It applies two quoted-attribute passes first:

  html = html.replace(
    /([\w:-]+)\s*=\s*"([^"]*)"/g,
    (_, attrName, attrValue) =>
      `${attrName}="${sanitizeAttributeValue(attrName, attrValue)}"`
  )

  html = html.replace(
    /([\w:-]+)\s*=\s*'([^']*)'/g,
    (_, attrName, attrValue) =>
      `${attrName}='${sanitizeAttributeValue(attrName, attrValue)}'`
  )

It then checks unquoted URL attributes with a third expression:

const unquotedUrlAttributePattern =
  /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi

HTML allows an unquoted attribute value to contain a quote. In x=y"z="q, the value of x is y"z="q, because the tokenizer stays in the unquoted-value state and treats the quote as a parse error it keeps. A browser reads <a x=y"z="q href="javascript:alert(1)"> as two attributes: x with the value y"z="q, and href with the value javascript:alert(1).

The sanitizer reads the same tag differently. The first double-quote pass scans for name="..." from the left. x=y is not followed by a quote, so it does not match.

The first match is z="q href=": the name is z and the value is q href=. z is not a URL attribute and the value needs no escaping, so the pass changes nothing. It resumes after that closing quote, at javascript:alert(1)">, where no name="..." follows.

The unquoted pass then looks for href=. It finds the text, but the value class in that pattern cannot start with the " that the earlier pass skipped, so it does not match. The event-handler, srcdoc and dangerous-element checks do not apply to this shape. The javascript: URL reaches the browser unchecked.

The single-quote form desynchronizes the second expression the same way. The bypass is limited to javascript: URLs; event handlers are not reachable with this trick because their pattern does not depend on quoting.

How is it exploited?

An attacker who can influence a translation submits an element with an unquoted attribute that contains a quote, followed by a URL attribute. The sanitizer returns the string unchanged, and the browser executes the URL when the translation is rendered.

  1. The attacker controls a translation message, for example through a locale file, a CMS field or an import.
  2. The message contains an element such as <a x=y"z="q href="javascript:alert(1)">.
  3. The application renders the translation with escapeParameter enabled, so sanitizeTranslatedHtml() runs.
  4. The first quoted-attribute pass consumes the opening quote of the real href, and the unquoted pass cannot match the value.
  5. The sanitizer returns the element with the javascript: URL intact.
  6. The browser parses the element, keeps href="javascript:alert(1)", and runs it when the user activates the link.

The advisory publishes three payloads and its output for each. The strings are public proof-of-concept inputs, reproduced here so a reviewer can test a sanitizer build.

<a x=y"z="q href="javascript:alert(1)">x</a>
<iframe x=y"z="q src="javascript:alert(1)"></iframe>
<a x=y'z='q href='javascript:alert(1)'>x</a>

The advisory's minimal check shows the sanitizer returns each string unchanged, while DOMParser in Chrome reads the last attribute as href or src with the javascript: value. The advisory does not publish an end-to-end page for this CVE, and the step that runs the URL needs a user gesture on a link or the load of an iframe.

How does the attack flow?

A quote inside an unquoted attribute makes the sanitizer and the browser disagree on where the next attribute begins, so the javascript: URL is never inspected.

flowchart LR A["Attacker controls a translation"] --> B["Element with x=y quote and a href"] B --> C["sanitizer regex reads z as a quoted attribute"] C --> D["it consumes the opening quote of href"] D --> E["unquoted URL pattern cannot match"] E --> F["javascript: URL survives"] F --> G["browser runs it in the application origin"]

What can an attacker do?

An attacker can run JavaScript in the origin of the application that renders the translation, for every user who views the crafted page. That covers session theft, actions taken as the victim and changes to the page content. The advisory records low confidentiality and low integrity impact with a changed scope, which matches script running in the host application's origin.

The impact needs all of these conditions:

  • The application enables escapeParameter and uses the vulnerable sanitizer.
  • The attacker can influence a translation that the application renders as HTML.
  • The page is rendered through v-html or server-side rendering.
  • A victim loads the page. For the link payload, the victim activates the link; the iframe payload runs only where the browser executes a javascript: URL in src.

The companion CVE-2026-144406 has a different mechanism and a lower score, CVSS v3.1 5.4 Medium. It leaves elements open across the translation boundary, so on a server-rendered page an unclosed <template>, <select>, <object><svg> or <math><mi><svg> can change how the rest of the page is parsed. A later inline script can then become an SVG script whose character references are decoded before it runs.

The two CVEs are separate bugs; the fix for the companion is in 11.4.22.

The flaw is a sanitizer bypass in a client library. It does not give server-side code execution by itself, and it does not affect an application that never renders translations as HTML.

Why does the fix work?

The fix replaces the regular expressions with a reader that follows the HTML tokenizer. It reads each tag, walks every attribute, and serializes each attribute through the URL, event-handler and srcdoc checks. A tag, comment or text-content element that is not closed at the end of the translation becomes text.

The new reader defines the tokenizer rules directly:

const tagStartPattern = /<(\/?)([a-z][^\t\n\f\r />]*)/iy
const tagStepPattern =
  /([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y

readTag() loops over tagStepPattern, takes the attribute name and its quoted or unquoted value, and calls serializeAttribute() for each one. serializeAttribute() passes the value to sanitizeAttributeValue(), which applies the javascript: check to every URL attribute. Because the tokenizer and the browser now agree on the boundary, the href that follows x=y"z="q is read as its own attribute and checked.

The patch also turns what is still open at the end of the string into text, so an unclosed tag cannot take in the rest of the page on the server. The advisory lists 11.4.19 as fixed for this bypass. The later 11.4.22 release extends the same tokenizer to the companion CVE-2026-144406.

How do I check if I was compromised?

No indicators of compromise are published for CVE-2026-144407. A successful payload is a stored or reflected translation, so the strongest check is a content search for the shape from the advisory.

Search the translation files and any database field that feeds a message for an unquoted attribute containing a quote, and for javascript: in a URL attribute:

grep -rniE "(href|src|action|formaction)=[\"']?javascript:" locales/ translations/ src/
grep -rnE '[[:space:]][A-Za-z_:.-]+=[^[:space:]>]*"[^>]*[[:space:]](href|src|action|formaction)=' locales/ translations/ src/

A hit is a lead, not proof: a trusted translation can contain the same characters. If a hit is in a message the application renders with v-html, review the page and the browser console.

Check the Content Security Policy reports for blocked inline script and for javascript: navigations if a policy is deployed. An attempt that fails may leave no trace, and a page view that runs the payload looks like a normal request in the server log.

Timeline

  • 2026-11-12: The vendor advisory GHSA-7356-3q55-jvxm was published, and Vue I18n 11.4.19 and 12.0.0-alpha.10 shipped the fix.
  • 2026-11-17: Vue I18n 11.4.22 and 12.0.0-alpha.13 shipped the fix for the companion CVE-2026-144406.
  • 2026-12-02: Vue I18n 11.4.25, the current release, shipped.
  • 2026-12-03: CVE-2026-144407 and CVE-2026-144406 were published.

The gap from the advisory to the CVE record was 21 days. The fix shipped on the day of the advisory.

The Vue I18n fix shipped with the advisory, 21 days before the CVE record
Figure 1: The advisory and fix, the companion fix, the current release and the CVE records. Source: Vue I18n advisories and releases, the CVE records and the npm registry, checked December 4, 2026

FAQ

Does escapeParameter alone prevent this?

No. escapeParameter turns on sanitizeTranslatedHtml(), and the bypass is inside that sanitizer. The option escapes the interpolation parameters, but the attacker controls the message markup around them, which is what this payload uses.

Is client-side rendering affected?

Yes, when the application assigns the translated string to v-html. The advisory describes rendering as HTML through v-html or server rendering. An application that renders the translation as text or uses component interpolation does not reach the vulnerable sink.

Are the 9.x and 10.x lines fixed?

No. The advisory lists 9.14.5 and 10.0.8 as affected and says the 9.x and 10.x lines are unsupported, so they get no fix. Move the project to 11.4.22 or later.

Is there a public proof of concept?

Yes. The vendor advisory publishes three payload strings, the sanitizer output for each, and the browser parse that shows the javascript: URL. This post reproduces the strings only; it does not add a working exploit.

Is CVE-2026-144407 in CISA KEV?

No. The CISA Known Exploited Vulnerabilities catalog was at version 2026.12.03 on 2026-12-04, and this CVE is not in it. CISA's SSVC assessment records exploitation as poc, not active.

What if I cannot upgrade yet?

Do not render translations from untrusted sources with v-html, even with escapeParameter enabled. Use component interpolation so the message becomes text nodes. That removes the HTML sink the payload needs, but it does not repair the sanitizer.

References

  • Vue I18n, "sanitizeTranslatedHtml allows DOM XSS via javascript: URLs after an unquoted attribute value that contains a quote", GHSA-7356-3q55-jvxm, published 2026-11-12 (checked December 4, 2026): https://github.com/intlify/vue-i18n/security/advisories/GHSA-7356-3q55-jvxm
  • Vue I18n, "escapeParameter sanitizer leaves elements open, so a translation can change how the rest of an SSR page is parsed", GHSA-786j-gfwp-vhm5, published 2026-11-12 (checked December 4, 2026): https://github.com/intlify/vue-i18n/security/advisories/GHSA-786j-gfwp-vhm5
  • CVE Program, "CVE-2026-144407" record, published 2026-12-03 (checked December 4, 2026): https://www.cve.org/CVERecord?id=CVE-2026-144407
  • CVE Program, "CVE-2026-144406" record, published 2026-12-03 (checked December 4, 2026): https://www.cve.org/CVERecord?id=CVE-2026-144406
  • Vue I18n source at 11.4.18, packages/shared/src/sanitize.ts (checked December 4, 2026): https://github.com/intlify/vue-i18n/blob/v11.4.18/packages/shared/src/sanitize.ts
  • Vue I18n source at 11.4.19, packages/shared/src/sanitize.ts (checked December 4, 2026): https://github.com/intlify/vue-i18n/blob/v11.4.19/packages/shared/src/sanitize.ts
  • Vue I18n, fix commit ef52989, 2026-11-12 (checked December 4, 2026): https://github.com/intlify/vue-i18n/commit/ef52989d0dde9e12fa3c7fc25494b306f7f05d93
  • Vue I18n, release 11.4.19, published 2026-11-12 (checked December 4, 2026): https://github.com/intlify/vue-i18n/releases/tag/v11.4.19
  • Vue I18n, release 11.4.22, published 2026-11-17 (checked December 4, 2026): https://github.com/intlify/vue-i18n/releases/tag/v11.4.22
  • npm, vue-i18n package page with weekly download count, 5,294,572 (checked December 4, 2026): https://www.npmjs.com/package/vue-i18n
  • CISA, Known Exploited Vulnerabilities catalog, version 2026.12.03 (checked December 4, 2026): https://www.cisa.gov/known-exploited-vulnerabilities-catalog

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog