Description
SQL::Abstract::Tree versions before 2.000001_04 for Perl allow cross-site scripting via unescaped SQL text and bind values in the html profile.

The html profile wraps keywords and placeholders in span elements and breaks lines with br elements, so its output is meant to go into a page as is. The format method does not HTML-escape the SQL text or the bind values it fills in around that markup.

An application that renders SQL formatted with the html profile, such as in a debug panel or query log, allows an attacker who controls a bind value or part of the SQL text to embed JavaScript in the page.
Published: 2026-11-04
Score: n/a
EPSS: n/a
KEV: No
Impact: Cross‑Site Scripting
Action: Immediate Patch
AI Analysis

Impact

The SQL::Abstract::Tree library fails to escape SQL text or bind values when generating a formatted string using its html profile. The output is intended to be inserted directly into an HTML page, and the lack of escaping allows an attacker who can influence a keyword, placeholder or bound value to embed arbitrary HTML or JavaScript. This results in stored or reflected client‑side code execution, with the potential to hijack sessions, deface pages, or launch phishing attacks. The weakness is a classic Cross‑Site Scripting flaw (CWE‑79).

Affected Systems

Perl environments that use the CPAN module SQL::Abstract::Tree with a version earlier than 2.000001_04 are affected. Any deployment that renders the html profile output—such as debugging panels, query logs, or custom reports—without additional escaping could be vulnerable. The issue is resolved by upgrading to SQL‑Abstract 2.000001_04 or later.

Risk and Exploitability

The flaw is client‑side and requires that the unescaped html profile output be exposed in a browser context. If the application provides such output to users, an attacker who can set or modify a bind value or a SQL fragment can inject JavaScript. No EPSS data exists and the vulnerability is not listed in the CISA KEV catalog, yet the ease of exploitation in typical debug environments gives the risk a moderate to high level. Because the flaw allows arbitrary code execution in the victim’s browser, the practical impact remains severe even without an available CVSS score.

Generated by OpenCVE AI on November 4, 2026 at 15:24 UTC.

Remediation

Vendor Solution

Upgrade to SQL-Abstract 2.000001_04 or later.


OpenCVE Recommended Actions

  • Upgrade SQL::Abstract::Tree to version 2.000001_04 or later.
  • Disable or secure any debug panel or query log that renders the html profile output.
  • When an upgrade cannot be applied immediately, ensure that the output from the html profile is properly HTML‑escaped before it is served to users.

Generated by OpenCVE AI on November 4, 2026 at 15:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 04 Nov 2026 14:45:00 +0000

Type Values Removed Values Added
Description SQL::Abstract::Tree versions before 2.000001_04 for Perl allow cross-site scripting via unescaped SQL text and bind values in the html profile. The html profile wraps keywords and placeholders in span elements and breaks lines with br elements, so its output is meant to go into a page as is. The format method does not HTML-escape the SQL text or the bind values it fills in around that markup. An application that renders SQL formatted with the html profile, such as in a debug panel or query log, allows an attacker who controls a bind value or part of the SQL text to embed JavaScript in the page.
Title SQL::Abstract::Tree versions before 2.000001_04 for Perl allow cross-site scripting via unescaped SQL text and bind values in the html profile
Weaknesses CWE-79
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-11-04T14:36:13.201Z

Reserved: 2026-11-03T08:07:58.089Z

Link: CVE-2026-121008

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T15:17:41.873

Modified: 2026-11-04T15:17:41.873

Link: CVE-2026-121008

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T15:30:09Z

Weaknesses
  • CWE-79

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