GHSA-85jm-cwp2-mvpv: CefSharp.Common: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder
CefSharp.Common's FolderSchemeHandlerFactory contains a path validation flaw that allows serving files outside the configured root folder. The vulnerability arises because the code uses a raw string prefix check to validate paths, which does not enforce directory boundaries. This can allow an attacker to access sibling directories with paths that start with the root folder path string but are not actually contained within it. This issue affects versions prior to 148.0.90. Exploitation requires the attacker to induce the embedded browser to request URLs handled by the vulnerable scheme handler.
AI Analysis
Technical Summary
The FolderSchemeHandlerFactory component in CefSharp.Common intended to restrict file serving to a configured root folder uses a path validation method that checks if the requested file path starts with the root folder path as a string prefix. This approach fails to enforce directory boundaries, allowing requests to escape to sibling directories whose paths share the root folder prefix string. For example, a request to a path like '../www2/secret.txt' can be combined and canonicalized to a sibling directory outside the root folder but still pass the prefix check, resulting in unauthorized file exposure. This vulnerability affects versions before 148.0.90 and is tracked as CVE-2026-48796.
Potential Impact
Applications using FolderSchemeHandlerFactory to serve files may unintentionally expose local files outside the intended root directory, potentially leaking sensitive data stored in sibling directories. The vulnerability does not allow modification or deletion of files, only unauthorized read access. Exploitation requires the attacker to cause the embedded browser to request URLs handled by the affected scheme, limiting the attack surface to applications embedding CefSharp with this configuration.
Mitigation Recommendations
No official patch link is provided in the data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using FolderSchemeHandlerFactory with root folders that have sensitive sibling directories sharing the same path prefix. Validate and sanitize requested paths to ensure they do not escape the intended root directory. Monitor vendor communications for an official fix or update.
GHSA-85jm-cwp2-mvpv: CefSharp.Common: `FolderSchemeHandlerFactory` path boundary check can expose files outside the configured root folder
Description
CefSharp.Common's FolderSchemeHandlerFactory contains a path validation flaw that allows serving files outside the configured root folder. The vulnerability arises because the code uses a raw string prefix check to validate paths, which does not enforce directory boundaries. This can allow an attacker to access sibling directories with paths that start with the root folder path string but are not actually contained within it. This issue affects versions prior to 148.0.90. Exploitation requires the attacker to induce the embedded browser to request URLs handled by the vulnerable scheme handler.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The FolderSchemeHandlerFactory component in CefSharp.Common intended to restrict file serving to a configured root folder uses a path validation method that checks if the requested file path starts with the root folder path as a string prefix. This approach fails to enforce directory boundaries, allowing requests to escape to sibling directories whose paths share the root folder prefix string. For example, a request to a path like '../www2/secret.txt' can be combined and canonicalized to a sibling directory outside the root folder but still pass the prefix check, resulting in unauthorized file exposure. This vulnerability affects versions before 148.0.90 and is tracked as CVE-2026-48796.
Potential Impact
Applications using FolderSchemeHandlerFactory to serve files may unintentionally expose local files outside the intended root directory, potentially leaking sensitive data stored in sibling directories. The vulnerability does not allow modification or deletion of files, only unauthorized read access. Exploitation requires the attacker to cause the embedded browser to request URLs handled by the affected scheme, limiting the attack surface to applications embedding CefSharp with this configuration.
Mitigation Recommendations
No official patch link is provided in the data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using FolderSchemeHandlerFactory with root folders that have sensitive sibling directories sharing the same path prefix. Validate and sanitize requested paths to ensure they do not escape the intended root directory. Monitor vendor communications for an official fix or update.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-85jm-cwp2-mvpv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-48796"]
- Ecosystems
- ["NuGet"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a4452e227e9c797198e1193
Added to database: 06/30/2026, 23:36:02 UTC
Last enriched: 06/30/2026, 23:47:54 UTC
Last updated: 07/01/2026, 03:33:12 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.