CVE-2026-61526

AdonisJS HTTP Server is vulnerable to reflected XSS through its exception handler

Published Jul 30, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. In versions 8.0.0-next.0 through 8.2.0 and 9.0.0 through 9.0.2, the error.message is interpolated into the default HTML exception response without escaping, allowing a crafted missing-route URL to execute attacker-controlled JavaScript when a victim opens it and no custom status page or JSON response handles the error. When debug mode is disabled and no custom status page handles the error, the default HTML renderer interpolates error.message directly into an HTML response. This issue is fixed in versions 8.2.1 and 9.1.0.

Analysis

AI-generated

Technical impact

The vulnerability arises when the AdonisJS HTTP Server exception handler inserts the unescaped error.message into the default HTML error page, allowing a crafted missing‑route URL to execute attacker‑controlled JavaScript in the victim’s browser. Based on the description, this can lead to malicious script execution within the client context, potentially resulting in session hijacking or data theft.

Affected Systems

AdonisJS HTTP Server versions 8.0.0‑next.0 through 8.2.0 and 9.0.0 through 9.0.2 are affected; the issue is fixed in 8.2.1 and 9.1.0.

Risk and Exploitability

The CVSS score of 6.1 reflects moderate severity, and the EPSS score of < 1% indicates a very low likelihood of exploitation at present; the vulnerability is not listed in the CISA KEV catalog, suggesting limited real‑world exploitation. Attackers can trigger the flaw by sending a crafted HTTP request to a non‑existent route when the application is in production mode with debug disabled and no custom error page configured, thereby enabling reflected cross‑site scripting.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade AdonisJS HTTP Server to v8.2.1 or later for the 8.x series, or v9.1.0 or later for the 9.x series
  • If an upgrade is not immediately possible, configure a custom exception handler that returns JSON or a sanitized error page, bypassing the vulnerable default HTML renderer
  • Ensure that custom error handling is enabled in the production environment and that debug mode is disabled to prevent the default renderer from being invoked

Generated by OpenCVE AI on August 4, 2026 at 22:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Adonisjs
Adonisjs http-server
Vendors & Products Adonisjs
Adonisjs http-server
Type Values Removed Values Added
Description AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. In versions 8.0.0-next.0 through 8.2.0 and 9.0.0 through 9.0.2, the error.message is interpolated into the default HTML exception response without escaping, allowing a crafted missing-route URL to execute attacker-controlled JavaScript when a victim opens it and no custom status page or JSON response handles the error. When debug mode is disabled and no custom status page handles the error, the default HTML renderer interpolates error.message directly into an HTML response. This issue is fixed in versions 8.2.1 and 9.1.0.
Title AdonisJS HTTP Server is vulnerable to reflected XSS through its exception handler
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 31, 2026, 7:20 PM
Reserved
Jul 10, 2026, 4:27 PM
Status
Deferred
Published
Jul 30, 2026, 9:18 PM
Modified
Oct 23, 2026, 10:10 PM