Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nuxt
  4. ›
  5. CVE-2026-53722

CVE-2026-53722: Nuxt: Reflected XSS in `<NuxtLink>` via unsanitised `javascript:` or `data:` URL

June 16, 2026

<NuxtLink> did not validate the URL scheme of values bound to its to or href props before rendering them into the href attribute of the underlying <a> element. When an application binds attacker-controlled input (a query parameter, a CMS field, a user-supplied profile URL) to <NuxtLink :to> or :href, the attacker can supply a javascript: or vbscript: URL that is reflected verbatim into the rendered markup. Clicking the link executes the supplied script in the origin of the Nuxt application, resulting in reflected DOM-based cross-site scripting. A data:text/html,... payload reflected through the same sink does not execute in the application’s origin but enables a same-tab phishing surface anchored to a legitimate application link.

The same value was exposed to consumers of the component’s custom slot via the href and route.href props, so applications that re-bind those values to their own anchors were affected identically.

Unlike the previously reported navigateTo issue (CVE-2024-34343), the sink here is the rendered anchor itself; the existing isScriptProtocol checks in navigateTo and reloadNuxtApp are not on the code path. The onClick handler intentionally returns early for external links so the browser’s native protocol-based navigation runs.

References

  • github.com/advisories/GHSA-934w-87qh-qr26
  • github.com/nuxt/nuxt/commit/0103ce06fbbbdfa079a7f020ef8ce00121eac4a3
  • github.com/nuxt/nuxt/commit/53284043dc21210a25d629d1cec67d3ae557ffd0
  • github.com/nuxt/nuxt/security/advisories/GHSA-934w-87qh-qr26
  • nvd.nist.gov/vuln/detail/CVE-2026-53722

Code Behaviors & Features

Detect and mitigate CVE-2026-53722 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.21.7, all versions starting from 4.0.0 before 4.4.7

Fixed versions

  • 3.21.7
  • 4.4.7

Solution

Upgrade to versions 3.21.7, 4.4.7 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-83: Improper Neutralization of Script in Attributes in a Web Page

Source file

npm/nuxt/CVE-2026-53722.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:52 +0000.