SCA: security update for sqlparse (GHSA-3496-9g83-7v6x)

medium Tenable Cloud Security Plugin ID 446021

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse/filters/output.py
fails to escape existing backslashes before quotes in sqlparse.format output_format='python' and
output_format='php' and the corresponding sqlformat -l modes, allowing crafted SQL to terminate the
generated string and inject Python or PHP code when a downstream consumer executes or imports the
generated source. This issue is fixed in version 0.6.0. (CVE-2026-59894)

Solution

Update the sqlparse library and its related packages to version 0.6.0 or later.

See Also

https://github.com/advisories/GHSA-3496-9g83-7v6x

Plugin Details

Severity: Medium

ID: 446021

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 8/17/2026

Updated: 8/17/2026

Risk Information

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-59894

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.2

Threat Score: 2.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 8/17/2026

Vulnerability Publication Date: 8/17/2026

Reference Information

CVE: CVE-2026-59894

cwe: CWE-94