---
id: CVE-2026-106108
aliases:
  - GHSA-vhhq-m2gm-rwc9
title: >-
  Quasar Framework: App Vite SSG page output paths can escape the configured
  distribution directory
summary: >-
  Quasar Framework: App Vite SSG page output paths can escape the configured
  distribution directory
severity: medium
cwe:
  - CWE-22
vendor: quasar
product: '@quasar/app-vite'
ecosystem: npm
affected:
  - '@quasar/app-vite >= 3.1.0, <= 3.2.0'
patched:
  - '@quasar/app-vite 3.3.0'
published: '2026-10-07'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T16:14:42Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-vhhq-m2gm-rwc9'
references:
  - url: >-
      https://github.com/quasarframework/quasar/security/advisories/GHSA-vhhq-m2gm-rwc9
  - url: >-
      https://github.com/quasarframework/quasar/commit/cdd4daeec839215540221122763c7a17cd478abc
  - url: >-
      https://github.com/quasarframework/quasar/releases/tag/@quasar/app-vite-v3.1.0
  - url: 'https://github.com/advisories/GHSA-vhhq-m2gm-rwc9'
tags:
  - ghsa
  - npm
ingestedAt: '2026-10-07T16:38:22.235Z'
---

## Overview

## Summary

During an SSG build, page definitions returned by `getSsgPages()` can provide custom `dir` and `filename` values. The builder joined those values to `build.distDir` and wrote the generated page without verifying that the final destination remained inside the distribution directory.

## Details

A page definition containing parent-directory traversal could cause the build to create a new HTML file outside `build.distDir`. An existing symlink below the distribution directory could also redirect a generated file or newly created directories outside the output tree.

Quasar application configuration and SSG page definitions are trusted input by default, so this is not normally a remote file-write primitive. The issue becomes relevant when an application derives SSG page definitions from external or otherwise untrusted content, or when build configuration is compromised. Existing files are protected by the SSG renderer's no-overwrite behavior, but new files and directories can be created with the permissions of the build user.

## Impact

An attacker able to influence an application's SSG page definitions could create files outside the intended build output directory during `quasar build -m ssg`.

## Remediation

Resolve each page destination against the real `build.distDir`, reject absolute and parent-traversing paths, reject destinations that resolve to the output root where a file is expected, and verify existing ancestors after resolving symlinks.

## Affected packages

- `@quasar/app-vite >= 3.1.0, <= 3.2.0`

## Remediation

Upgrade to a patched release:

- `@quasar/app-vite 3.3.0`
