# GHSA-6q65-j4jw-9cg8: DotVVM allows path traversal when deployed in Debug mode

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-06-19T14:40:30.000Z
- Modified: 2025-06-19T15:01:15.592Z
- Weaknesses: CWE-22

## Description

### Description

There is a path traversal vulnerability in any DotVVM application started in Debug mode, if at least one resource with the `FileResourceLocation` has been added. The vulnerability allows an attacker to read arbitrary files from the filesystem accessible by the web application (i.e. appsettings.json or other files containing secrets).

### Patches

The bug is patched in versions  **4.2.10**, **4.3.8** and **5.0.0-preview03-final** (and newer).

Apart from updating DotVVM, it is also recommend invalidating any secrets which could have been leaked by an application deployed in Debug mode (such as database passwords).

### Workarounds

If you cannot update to a patched version, avoid running a publicly accessible DotVVM application in Debug mode (Development environment in Asp.Net Core). It is recommend adding the following statement to the DotvvmStartup class:

```
    config.Debug = false; // TODO: workaround for GHSA-6q65-j4jw-9cg8, remove after updating DotVVM
```

(As written by GitHub Advisory Database.)

## Affected

- DotVVM (NuGet): from 4.3.0-preview01-final before 4.3.8; from 5.0.0-preview01-final before 5.0.0-preview03-final; before 4.2.10

## References

- <https://github.com/riganti/dotvvm/security/advisories/GHSA-6q65-j4jw-9cg8> (web)
- <https://github.com/riganti/dotvvm/commit/68db0110beeda4e8e4be1b7c4e480ef876895bb5> (web)
- <https://github.com/riganti/dotvvm> (package)

## Sources

- GitHub Advisory Database: [GHSA-6q65-j4jw-9cg8](https://github.com/advisories/GHSA-6q65-j4jw-9cg8), CC-BY-4.0, modified 2025-06-19

---

Page: https://cve.day/GHSA-6q65-j4jw-9cg8 · Whole record: https://cve.day/GHSA-6q65-j4jw-9cg8.json · Rebuilt by cve.day 2026-11-25T22:56:29.519Z
