CVE-2026-21892: Parsl SQL Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-f2mf-q878-gh58
CVSS 5.3
CWE-89
Published
Advisory Summary

CVE-2026-21892 is a MODERATE (CVSS 5.3) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Parsl libraries in the PyPI ecosystem. The issue involves parsl monitoring visualization vulnerable to sql injection. Remediation is available by upgrading affected packages to version 2026.01.05.

CVE-2026-21892 at a Glance

CVE Identifier CVE-2026-21892
GHSA Identifier GHSA-f2mf-q878-gh58
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Parsl
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-21892

To remediate this vulnerability, upgrade all affected Parsl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

parsl fixed: 2026.01.05
pip install parsl>=2026.01.05
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show parsl

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-21892, inspect your installed packages using pip:

pip show parsl

Analyze the terminal output to locate any version of Parsl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2026.01.05), your application is affected.

Note: The pip show parsl command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Parsl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Affected Product:** Parsl (Python Parallel Scripting Library) **Component:** parsl.monitoring.visualization **Vulnerability Type:** SQL Injection (CWE-89) **Severity:** High (CVSS Rating Recommended: 7.5 - 8.6) **URL:** [https://github.com/Parsl/parsl/blob/master/parsl/monitoring/visualization/views.py]( https://github.com/Parsl/parsl/blob/master/parsl/monitoring/visualization/views.py) **Summary** A SQL Injection vulnerability exists in the parsl-visualize component of the Parsl library. The application constructs SQL queries using unsafe string formatting (Python % operator) with user-supplied input (workflow_id) directly from URL routes. This allows an unauthenticated attacker with access to the visualization dashboard to inject arbitrary SQL commands, potentially leading to data exfiltration or denial of service against the monitoring database. **Root Cause Analysis** The vulnerability is located in parsl/monitoring/visualization/views.py. Multiple route handlers take the workflow_id parameter from the URL and inject it directly into a raw SQL query string without sanitization or parameterization. Vulnerable Code Snippet 1 ``` query = """SELECT task.task_id, task.task_func_name, task.task_depends, status.task_status_name FROM task LEFT JOIN status ON task.task_id = status.task_id AND task.run_id = status.run_id AND status.timestamp = (SELECT MAX(status.timestamp) FROM status WHERE status.task_id = task.task_id and status.run_id = task.run_id ) WHERE task.run_id='%s'""" % (workflow_id) ``` Vulnerable Code Snippet 2 ``` df_task_tries = pd.read_sql_query("""SELECT ... WHERE task.task_id = try.task_id AND task.run_id='%s' and try.run_id='%s'""" % (workflow_id, workflow_id), db.engine) # <--- Vulnerable ``` **Impact** **Data Exfiltration:** An attacker can use UNION based injection to dump the entire contents of the monitoring database, including potentially sensitive environment variables, task parameters, or host information logged by the monitoring system. **Access Control Bypass:** By injecting boolean logic (e.g., ' OR '1'='1), an attacker could bypass specific workflow filters to view data they are not authorized to see. **Denial of Service:** Time-based attacks or resource-intensive queries (e.g., randomblob) could crash the visualization server or the database. **Proof of Concept (PoC)** **Prerequisites:** Parsl installed with monitoring enabled (pip install 'parsl[monitoring,visualization]'). A running parsl-visualize server serving a database with at least one recorded workflow. **Reproduction Steps:** Identify a valid workflow ID (or use a known ID like default-run or a UUID). Navigate to the dag_group_by_states endpoint using the following manipulated URLs to confirm SQL logic control (Boolean-based Blind SQLi). Test 1: Boolean FALSE (Graph Disappears) Injecting a false condition (1=0) causes the query to return zero rows, resulting in an empty visualization. `http://<server>:8080/workflow/<VALID_ID>'%20AND%20'1'='0/dag_group_by_states ` Test 2: Boolean TRUE (Graph Reappears) Injecting a true condition (1=1) restores the query logic, causing the graph to render correctly. `http://<server>:8080/workflow/<VALID_ID>'%20AND%20'1'='1/dag_group_by_states `

CVE-2026-21892 Affected Parsl Versions

1 component(s)
Fixed Versions:
2026.01.05
Product / Package Ecosystem Affected Versions Fixed Version
parsl
PyPI
< 2026.01.05
2026.01.05

References

Frequently Asked Questions

What is CVE-2026-21892?
CVE-2026-21892 is a security vulnerability in Parsl involving Parsl Monitoring Visualization Vulnerable to SQL Injection under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Parsl versions are affected?
Affected versions include releases prior to 2026.01.05 across affected packages: parsl.
What version fixes CVE-2026-21892?
Upgrading to 2026.01.05 (or the latest patched release for your respective branch) resolves the vulnerability.
Is parsl affected?
Yes, parsl is affected in releases prior to 2026.01.05. Upgrade your dependency to 2026.01.05 or later.
What is the CVSS score of CVE-2026-21892?
CVE-2026-21892 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-21892?
CVE-2026-21892 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check PyPI dependencies for CVE-2026-21892?
Run the dependency tree command: 'pip show parsl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f2mf-q878-gh58",
  "modified" : "2026-01-08T21:18:52Z",
  "published" : "2026-01-06T18:04:21Z",
  "aliases" : [ "CVE-2026-21892" ],
  "summary" : "Parsl Monitoring Visualization Vulnerable to SQL Injection",
  "details" : "**Affected Product:** Parsl (Python Parallel Scripting Library)\n\n**Component:** parsl.monitoring.visualization\n\n**Vulnerability Type:** SQL Injection (CWE-89)\n\n**Severity:** High (CVSS Rating Recommended: 7.5 - 8.6)\n\n**URL:** [https://github.com/Parsl/parsl/blob/master/parsl/monitoring/visualization/views.py]( https://github.com/Parsl/parsl/blob/master/parsl/monitoring/visualization/views.py)\n\n**Summary**\n\nA SQL Injection vulnerability exists in the parsl-visualize component of the Parsl library. The application constructs SQL queries using unsafe string formatting (Python % operator) with user-supplied input (workflow_id) directly from URL routes. This allows an unauthenticated attacker with access to the visualization dashboard to inject arbitrary SQL commands, potentially leading to data exfiltration or denial of service against the monitoring database.\n\n**Root Cause Analysis**\n\nThe vulnerability is located in parsl/monitoring/visualization/views.py. Multiple route handlers take the workflow_id parameter from the URL and inject it directly into a raw SQL query string without sanitization or parameterization.\n\nVulnerable Code Snippet 1 \n\n```\n   query = \"\"\"SELECT task.task_id, task.task_func_name, task.task_depends, status.task_status_name\n               FROM task LEFT JOIN status\n               ON task.task_id = status.task_id\n               AND task.run_id = status.run_id\n               AND status.timestamp = (SELECT MAX(status.timestamp)\n                                       FROM status\n                                       WHERE status.task_id = task.task_id and status.run_id = task.run_id\n                                      )\n               WHERE task.run_id='%s'\"\"\" % (workflow_id)\n```\n\nVulnerable Code Snippet 2\n```\ndf_task_tries = pd.read_sql_query(\"\"\"SELECT ...\n                                     WHERE task.task_id = try.task_id AND task.run_id='%s' and try.run_id='%s'\"\"\"\n                                     % (workflow_id, workflow_id), db.engine) # <--- Vulnerable \n```\n\n**Impact**\n\n**Data Exfiltration:** An attacker can use UNION based injection to dump the entire contents of the monitoring database, including potentially sensitive environment variables, task parameters, or host information logged by the monitoring system.\n\n**Access Control Bypass:** By injecting boolean logic (e.g., ' OR '1'='1), an attacker could bypass specific workflow filters to view data they are not authorized to see.\n\n**Denial of Service:** Time-based attacks or resource-intensive queries (e.g., randomblob) could crash the visualization server or the database.\n\n**Proof of Concept (PoC)**\n\n**Prerequisites:**\n\nParsl installed with monitoring enabled (pip install 'parsl[monitoring,visualization]').\n\nA running parsl-visualize server serving a database with at least one recorded workflow.\n\n**Reproduction Steps:**\n\nIdentify a valid workflow ID (or use a known ID like default-run or a UUID).\n\nNavigate to the dag_group_by_states endpoint using the following manipulated URLs to confirm SQL logic control (Boolean-based Blind SQLi).\n\nTest 1: Boolean FALSE (Graph Disappears)\nInjecting a false condition (1=0) causes the query to return zero rows, resulting in an empty visualization.\n\n`http://<server>:8080/workflow/<VALID_ID>'%20AND%20'1'='0/dag_group_by_states\n`\n\nTest 2: Boolean TRUE (Graph Reappears)\nInjecting a true condition (1=1) restores the query logic, causing the graph to render correctly.\n\n`http://<server>:8080/workflow/<VALID_ID>'%20AND%20'1'='1/dag_group_by_states\n`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "parsl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.01.05"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Parsl/parsl/security/advisories/GHSA-f2mf-q878-gh58"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-21892"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Parsl/parsl/commit/013a928461e70f38a33258bd525a351ed828e974"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Parsl/parsl"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-06T18:04:21Z",
    "nvd_published_at" : "2026-01-08T14:15:57Z"
  }
}