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

CVE-2025-11966: Vert.x-Web vulnerable to Stored Cross-site Scripting in directory listings via file names

October 22, 2025 (updated November 10, 2025)

  • In the StaticHandlerImpl#sendDirectoryListing(...) method under the text/html branch, file and directory names are directly embedded into the href, title, and link text without proper HTML escaping.
  • As a result, in environments where an attacker can control file names, injecting HTML/JavaScript is possible. Simply accessing the directory listing page will trigger an XSS.
  • Affected Code:
  • File: vertx-web/src/main/java/io/vertx/ext/web/handler/impl/StaticHandlerImpl.java
  • Lines:
  • 709–713: normalizedDir is constructed without escaping
  • 714–731: <li><a ...> elements insert file names directly into attributes and body without escaping
  • 744: parent directory name construction
  • 746–751: {directory}, {parent}, and {files} are inserted into the HTML template without escaping

References

  • github.com/advisories/GHSA-45p5-v273-3qqr
  • github.com/vert-x3/vertx-web
  • github.com/vert-x3/vertx-web/security/advisories/GHSA-45p5-v273-3qqr
  • gitlab.eclipse.org/security/vulnerability-reports/-/issues/303
  • nvd.nist.gov/vuln/detail/CVE-2025-11966

Code Behaviors & Features

Detect and mitigate CVE-2025-11966 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.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 07 Dec 2025 00:19:34 +0000.