GHSA-q9mq-245r-4g93: Path Traversal

Published Oct 7, 2026
·
Updated

Summary

@quasar/app-vite recursively removes build.distDir before producing build artifacts. The configured path was made absolute, but it was not checked before removal. A configuration mistake could therefore target the project root, user home directory, a filesystem root, or another directory outside the project.

Details

The build command and mode builders passed the resolved output directory directly to fs-extra recursive removal. Existing symlink ancestors were not resolved before deletion either, so a path that appeared to be inside the project could operate on a directory outside it.

quasar.config is trusted application code, and no attacker-controlled input reaches build.distDir by default. This issue is primarily destructive-build safety hardening. It can become a security boundary when build configuration is generated or influenced by less-trusted automation.

Impact

Running a normal Quasar build with an unsafe build.distDir can delete data accessible to the build user before compilation begins.

Remediation

Validate the effective deletion target before every artifact cleanup. Always reject filesystem roots, the user home directory and the project root; resolve existing symlink ancestors; require an explicit build.allowOutsideProjectDistDir opt-in for external output directories; and log the exact resolved target before removal.

Affected Software

1 affected componentFixes available
npm/@quasar/app-vite>=1.0.0<=3.2.0
3.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@quasar/app-vite to a version that resolves this vulnerability.

    Fixed in 3.3.0
  2. Configuration

    Require an explicit build.allowOutsideProjectDistDir opt-in before allowing an external output directory.

    @quasar/app-vite build.allowOutsideProjectDistDir = explicit opt-in required
  3. Compensating control

    Before every artifact cleanup, resolve existing symlink ancestors and reject deletion targets that are a filesystem root, the user home directory, or the project root.

  4. Operational

    Log the exact resolved deletion target immediately before removing it.

Event History

Oct 7, 2026
Advisory Published
via GitHub·04:14 PM
Data Sourced
via GitHub·04:14 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Who is realistically exposed to this issue?

The primary risk is to environments where build.distDir is generated or influenced by less-trusted automation. quasar.config is trusted application code, and no attacker-controlled input reaches build.distDir by default.

2

What must happen for data to be deleted?

A normal build must run with an unsafe effective build.distDir, and the build user must have permission to delete the targeted data. Symlink ancestors can cause a path that appears to be within the project to resolve to a directory outside it.

3

What can be done if patching is not immediately possible?

Validate the effective deletion target before artifact cleanup, including resolving existing symlink ancestors. Reject filesystem roots and the user home directory, and avoid allowing build configuration from less-trusted automation to select the cleanup path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203