CVE-2026-121008: SQL::Abstract::Tree cross-site scripting in HTML profile

CVE-2026-121008 · Severity: info · Published 2026-11-04

SQL::Abstract::Tree is a Perl library that formats SQL queries for display in debug panels and logs. When using the HTML profile, the library failed to escape SQL text and bind values, allowing attackers to inject JavaScript code if they control a query parameter or string literal. This could enable session hijacking or malware injection when SQL is displayed in web applications.

Vendors: CPAN.

Quick answers

Is CVE-2026-121008 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-121008 being exploited in the wild.
How severe is CVE-2026-121008?
Informational severity, published 4 November 2026.
Which products and versions are affected?
CPAN SQL::Abstract::Tree before 2.000001_04.
Is there a fix for CVE-2026-121008?
Yes: fixed in 2.000001_04. Until then: Disable the html profile or set html_escape => 0 in applications that do not require the HTML formatting feature; use the console or console_monochrome profile instead when formatting SQL for logging or debugging.</anigation> </invoke> Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-121008 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-121008?
Check whether you run CPAN SQL::Abstract::Tree at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 2.000001_04

Disable the html profile or set html_escape => 0 in applications that do not require the HTML formatting feature; use the console or console_monochrome profile instead when formatting SQL for logging or debugging.</anigation> </invoke>

Technical details

The vulnerability is a cross-site scripting (XSS) flaw in the HTML profile of SQL::Abstract::Tree, which generates HTML markup for formatted SQL output. The format() method failed to HTML-escape SQL identifiers, literals, operators, and filled-in bind values before inserting them around the profile's own span and br markup. An attacker controlling a bind value (e.g., user input used in a WHERE clause) or SQL string literal can embed script tags that execute in the page context.

Affected products

  • cpan SQL::Abstract::Tree before 2.000001_04

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.