Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.vertx/vertx-web
  4. ›
  5. CVE-2025-11965

CVE-2025-11965: Vert.x-Web Access Control Flaw in StaticHandler’s Hidden File Protection for Files Under Hidden Directories

October 22, 2025

There is a flaw in the hidden file protection feature of Vert.x Web’s StaticHandler when setIncludeHidden(false) is configured.

In the current implementation, only files whose final path segment (i.e., the file name) begins with a dot (.) are treated as “hidden” and are blocked from being served. However, this logic fails in the following cases:

  • Files under hidden directories: For example, /.secret/config.txt — although .secret is a hidden directory, the file config.txt itself does not start with a dot, so it gets served.
  • Real-world impact: Sensitive files placed in hidden directories like .git, .env, .aws may become publicly accessible.

As a result, the behavior does not meet the expectations set by the includeHidden=false configuration, which should ideally protect all hidden files and directories. This gap may lead to unintended exposure of sensitive information.

References

  • github.com/advisories/GHSA-h5fg-jpgr-rv9c
  • github.com/vert-x3/vertx-web
  • github.com/vert-x3/vertx-web/security/advisories/GHSA-h5fg-jpgr-rv9c
  • gitlab.eclipse.org/security/vulnerability-reports/-/issues/304
  • nvd.nist.gov/vuln/detail/CVE-2025-11965

Code Behaviors & Features

Detect and mitigate CVE-2025-11965 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.5.22, all versions starting from 5.0.0 before 5.0.5

Fixed versions

  • 4.5.22
  • 5.0.5

Solution

Upgrade to versions 4.5.22, 5.0.5 or above.

Weakness

  • CWE-552: Files or Directories Accessible to External Parties

Source file

maven/io.vertx/vertx-web/CVE-2025-11965.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 07 Nov 2025 12:18:02 +0000.