CVE-2026-106107: @quasar/app-vite Nonce Attribute Vulnerability Leading to Potential HTML Injection
Summary
CVE-2026-106107: Quasar Framework: App Vite SSR and SSG nonce attributes are not safely constrained. Affects @quasar/app-vite versions < 3.3.0. Fixed in 3.3.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @quasar/app-vite package is a vital part of the Quasar Framework, which is designed for building responsive web applications using Vue.js. It provides tools for server-side rendering (SSR) and static site generation (SSG), allowing developers to create high-performance applications. However, a vulnerability exists in how nonce attributes are handled, which can lead to security risks if not addressed.
Vulnerability Detail
The vulnerability arises from the interpolation of ssrContext.nonce directly into quoted HTML attributes within the SSR and SSG renderer paths of the @quasar/app-vite package. If an application derives or overrides the nonce using untrusted data, it can allow an attacker to terminate the nonce attribute and inject additional attributes or markup into the generated HTML. This poses a significant risk, especially if the nonce is manipulated to include unsafe data. Cryptographically generated nonces are not directly affected, but exploitation requires unsafe data in ssrContext.nonce.
How To Fix
Minimum fixed version
3.3.0
This is the first release that contains the fix.
npm install @quasar/app-vite@3.3.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, ensure that any data used to set ssrContext.nonce is sanitized and does not contain any user-controlled input. This can help mitigate the risk of injection until the package is updated. Additionally, consider using a secure method to generate nonces that do not allow for user input.
Conclusion
The @quasar/app-vite package has a significant vulnerability related to nonce attribute handling that can lead to HTML injection if not addressed. It is crucial for developers using this package to update to version 3.3.0 or later to mitigate the risk. Additionally, employing safe practices for nonce generation and data handling can help protect applications from potential exploitation.
See every vulnerability recorded for @quasar/app-vite →
FAQ
A nonce is a unique, random value used to prevent replay attacks and ensure that a request is genuine. It is often used in Content Security Policy (CSP) to allow specific scripts to run.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If exploited, this vulnerability can lead to HTML injection attacks, allowing attackers to manipulate the content of your web application, potentially compromising user data and application integrity.
No, cryptographically generated base64 or base64url nonces are not directly affected by this vulnerability as they do not contain HTML attribute delimiters.
The CVSS score of this vulnerability is 8.3, indicating a high severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for @quasar/app-vite.