{"id":"GHSA-6q65-j4jw-9cg8","aliases":["GHSA-6q65-j4jw-9cg8"],"related":[],"kind":"vulnerability","state":"published","title":"DotVVM allows path traversal when deployed in Debug mode","summary":"### Description\n\nThere 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).\n\n### Patches\n\nThe bug is patched in versions  **4.2.10**, **4.3.8** and **5.0.0-preview03-final** (and newer).\n\nApart 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).\n\n### Workarounds\n\nIf 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:\n\n```\n    config.Debug = false; // TODO: workaround for GHSA-6q65-j4jw-9cg8, remove after updating DotVVM\n```","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Description\n\nThere 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).\n\n### Patches\n\nThe bug is patched in versions  **4.2.10**, **4.3.8** and **5.0.0-preview03-final** (and newer).\n\nApart 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).\n\n### Workarounds\n\nIf 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:\n\n```\n    config.Debug = false; // TODO: workaround for GHSA-6q65-j4jw-9cg8, remove after updating DotVVM\n```","format":"markdown","source":"ghsa"}],"published":"2025-06-19T14:40:30.000Z","modified":"2025-06-19T15:01:15.592Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"4.3.0-preview01-final","status":"affected","fixed":"4.3.8"}],"ecosystem":"NuGet","package":"DotVVM","purl":"pkg:nuget/DotVVM","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-preview01-final","status":"affected","fixed":"5.0.0-preview03-final"}],"ecosystem":"NuGet","package":"DotVVM","purl":"pkg:nuget/DotVVM","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.10"}],"ecosystem":"NuGet","package":"DotVVM","purl":"pkg:nuget/DotVVM","source":"ghsa"}],"references":[{"url":"https://github.com/riganti/dotvvm/security/advisories/GHSA-6q65-j4jw-9cg8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/riganti/dotvvm/commit/68db0110beeda4e8e4be1b7c4e480ef876895bb5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/riganti/dotvvm","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6q65-j4jw-9cg8","url":"https://github.com/advisories/GHSA-6q65-j4jw-9cg8","licence":"CC-BY-4.0","modified":"2025-06-19T15:01:15.592Z"}],"updatedAt":"2026-11-25T22:56:29.519Z"}