CVE-2026-62683: File Browser Trailing-slash Directory Deletion Leaves Public Vulnerability

LOW
Advisory Identifier: GHSA-pp88-jhwj-5qh5
CVSS 3.1
CWE-863
Published
Advisory Summary

CVE-2026-62683 is a LOW (CVSS 3.1) trailing-slash directory deletion leaves public vulnerability (CWE-863: Incorrect Authorization) affecting File Browser libraries in the Go ecosystem. The issue involves trailing-slash directory deletion leaves public shares active for recreated paths. Remediation is available by upgrading affected packages to version 2.63.17.

CVE-2026-62683 at a Glance

CVE Identifier CVE-2026-62683
GHSA Identifier GHSA-pp88-jhwj-5qh5
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-863: Incorrect Authorization
Affected Product File Browser
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-62683

To remediate this vulnerability, upgrade all affected File Browser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/filebrowser/filebrowser/v2 fixed: 2.63.17
Upgrade github.com/filebrowser/filebrowser/v2 to 2.63.17
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/filebrowser/filebrowser/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-62683, inspect your project dependencies for File Browser:

inspect dependencies for github.com/filebrowser/filebrowser/v2

Analyze the terminal output to locate any version of File Browser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.63.17), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In File Browser, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary File Browser v2.63.15 can leave a public directory share behind when the shared directory is deleted through a path with a trailing slash. The share cleanup path calls `DeleteWithPathPrefix(file.Path, userID)`, but the Bolt backend performs the database prefix query with the unnormalized argument before trimming the slash for boundary checks. For a stored share at `/a`, deleting `/a/` queries for paths prefixed by `/a/`, so the exact `/a` share is never loaded and never deleted. If a directory with the same path is later recreated, the stale public share becomes active again and exposes the new directory contents through the old public URL. ## Impact An authenticated user with share, download, and delete permissions can create a valid public share, delete the shared path with a trailing slash, and leave the public link in storage. The link is dormant while the path does not exist, but it exposes future content if the same path is recreated later. The final data exposure is unauthenticated through the public share URL. This bypasses the intended lifecycle cleanup around public shares and is adjacent to the recent public-share path-existence and prefix-boundary fixes. ## Reproduction The following test was run against v2.63.15, commit `be23ab3a15bf957928ecfed88de5ab67850c1b9c`. 1. Create a scoped user with share, download, and delete permissions. 2. Create `/a/old.txt` in that user's scope. 3. Store a valid public share row with `Hash: "h"`, `UserID: 1`, and `Path: "/a"`. 4. Send an authenticated delete request for `/a/` through the resource delete handler. 5. Confirm the directory is deleted. 6. Confirm share hash `h` still exists in storage. 7. Recreate `/a/future.txt`. 8. Request the public share handler at `h/` and observe that the unauthenticated response includes `future.txt`. Command used for the local proof: ```bash go test ./http -run TestValidationTrailingSlashDeleteLeavesExactDirectoryShare -count=1 -v ``` Observed result: ```text === RUN TestValidationTrailingSlashDeleteLeavesExactDirectoryShare --- PASS: TestValidationTrailingSlashDeleteLeavesExactDirectoryShare (0.03s) PASS ok github.com/filebrowser/filebrowser/v2/http 0.044s ``` ## Root cause `storage/bolt/share.go` queries the share index before normalizing the path: ```go func (s shareBackend) DeleteWithPathPrefix(pathPrefix string, userID uint) error { var links []share.Link if err := s.db.Prefix("Path", pathPrefix, &links); err != nil { ... } prefix := strings.TrimRight(pathPrefix, "/") for _, link := range links { if link.UserID != userID { continue } if link.Path != prefix && !strings.HasPrefix(link.Path, prefix+"/") { continue } ... } } ``` For `pathPrefix == "/a/"`, the database prefix query can return descendants such as `/a/child`, but it does not return the exact share path `/a`. The later `TrimRight` cannot delete the exact share because that row was not loaded from storage. `http/resource.go` passes the request-derived path into this cleanup before removing the resource: ```go file, err := files.NewFileInfo(... Path: r.URL.Path ...) ... err = d.store.Share.DeleteWithPathPrefix(file.Path, d.user.ID) ... return d.user.Fs.RemoveAll(r.URL.Path) ``` A request for `/a/` therefore removes the directory but misses the exact `/a` share row. ## Remediation Normalize the path before querying the share index, and cover both the exact normalized path and its descendants. Add regression tests where a stored share path `/a` is removed by `DeleteWithPathPrefix("/a/", userID)` and where `DELETE /api/resources/a/` deletes the exact public share row. Fixed in version 2.63.17.

CVE-2026-62683 Affected File Browser Versions

1 component(s)
Fixed Versions:
2.63.17
Product / Package Ecosystem Affected Versions Fixed Version
github.com/filebrowser/filebrowser/v2
Go
< 2.63.17
2.63.17

References

Frequently Asked Questions

What is CVE-2026-62683?
CVE-2026-62683 is a security vulnerability in File Browser involving Trailing-slash directory deletion leaves public shares active for recreated paths under CWE-863: Incorrect Authorization.
Which File Browser versions are affected?
Affected versions include releases prior to 2.63.17 across affected packages: github.com/filebrowser/filebrowser/v2.
What version fixes CVE-2026-62683?
Upgrading to 2.63.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/filebrowser/filebrowser/v2 affected?
Yes, github.com/filebrowser/filebrowser/v2 is affected in releases prior to 2.63.17. Upgrade your dependency to 2.63.17 or later.
What is the CVSS score of CVE-2026-62683?
CVE-2026-62683 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-62683?
CVE-2026-62683 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Go dependencies for CVE-2026-62683?
Run the dependency tree command: 'inspect dependencies for github.com/filebrowser/filebrowser/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pp88-jhwj-5qh5",
  "modified" : "2026-11-13T23:12:06Z",
  "published" : "2026-11-13T23:12:06Z",
  "aliases" : [ "CVE-2026-62683" ],
  "summary" : "File Browser: Trailing-slash directory deletion leaves public shares active for recreated paths",
  "details" : "## Summary\n\nFile Browser v2.63.15 can leave a public directory share behind when the shared directory is deleted through a path with a trailing slash. The share cleanup path calls `DeleteWithPathPrefix(file.Path, userID)`, but the Bolt backend performs the database prefix query with the unnormalized argument before trimming the slash for boundary checks. For a stored share at `/a`, deleting `/a/` queries for paths prefixed by `/a/`, so the exact `/a` share is never loaded and never deleted.\n\nIf a directory with the same path is later recreated, the stale public share becomes active again and exposes the new directory contents through the old public URL.\n\n## Impact\n\nAn authenticated user with share, download, and delete permissions can create a valid public share, delete the shared path with a trailing slash, and leave the public link in storage. The link is dormant while the path does not exist, but it exposes future content if the same path is recreated later. The final data exposure is unauthenticated through the public share URL.\n\nThis bypasses the intended lifecycle cleanup around public shares and is adjacent to the recent public-share path-existence and prefix-boundary fixes.\n\n## Reproduction\n\nThe following test was run against v2.63.15, commit `be23ab3a15bf957928ecfed88de5ab67850c1b9c`.\n\n1. Create a scoped user with share, download, and delete permissions.\n2. Create `/a/old.txt` in that user's scope.\n3. Store a valid public share row with `Hash: \"h\"`, `UserID: 1`, and `Path: \"/a\"`.\n4. Send an authenticated delete request for `/a/` through the resource delete handler.\n5. Confirm the directory is deleted.\n6. Confirm share hash `h` still exists in storage.\n7. Recreate `/a/future.txt`.\n8. Request the public share handler at `h/` and observe that the unauthenticated response includes `future.txt`.\n\nCommand used for the local proof:\n\n```bash\ngo test ./http -run TestValidationTrailingSlashDeleteLeavesExactDirectoryShare -count=1 -v\n```\n\nObserved result:\n\n```text\n=== RUN   TestValidationTrailingSlashDeleteLeavesExactDirectoryShare\n--- PASS: TestValidationTrailingSlashDeleteLeavesExactDirectoryShare (0.03s)\nPASS\nok  github.com/filebrowser/filebrowser/v2/http  0.044s\n```\n\n## Root cause\n\n`storage/bolt/share.go` queries the share index before normalizing the path:\n\n```go\nfunc (s shareBackend) DeleteWithPathPrefix(pathPrefix string, userID uint) error {\n    var links []share.Link\n    if err := s.db.Prefix(\"Path\", pathPrefix, &links); err != nil {\n        ...\n    }\n\n    prefix := strings.TrimRight(pathPrefix, \"/\")\n\n    for _, link := range links {\n        if link.UserID != userID {\n            continue\n        }\n\n        if link.Path != prefix && !strings.HasPrefix(link.Path, prefix+\"/\") {\n            continue\n        }\n        ...\n    }\n}\n```\n\nFor `pathPrefix == \"/a/\"`, the database prefix query can return descendants such as `/a/child`, but it does not return the exact share path `/a`. The later `TrimRight` cannot delete the exact share because that row was not loaded from storage.\n\n`http/resource.go` passes the request-derived path into this cleanup before removing the resource:\n\n```go\nfile, err := files.NewFileInfo(... Path: r.URL.Path ...)\n...\nerr = d.store.Share.DeleteWithPathPrefix(file.Path, d.user.ID)\n...\nreturn d.user.Fs.RemoveAll(r.URL.Path)\n```\n\nA request for `/a/` therefore removes the directory but misses the exact `/a` share row.\n\n## Remediation\n\nNormalize the path before querying the share index, and cover both the exact normalized path and its descendants. Add regression tests where a stored share path `/a` is removed by `DeleteWithPathPrefix(\"/a/\", userID)` and where `DELETE /api/resources/a/` deletes the exact public share row.\n\nFixed in version 2.63.17.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/filebrowser/filebrowser/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.63.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/filebrowser/filebrowser/security/advisories/GHSA-pp88-jhwj-5qh5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/filebrowser/filebrowser/commit/f30fca636c1af9ef401e9a82ff60391cb3db97e1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/filebrowser/filebrowser"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/filebrowser/filebrowser/releases/tag/v2.63.17"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/cve-2026-62683"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-13T23:12:06Z",
    "nvd_published_at" : "2026-07-15T16:16:51Z"
  }
}