Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ckan
  4. ›
  5. CVE-2026-42031

CVE-2026-42031: CKAN has Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`

April 29, 2026

A vulnerability in datastore_search_sql allowed attackers to inject SQL in order to gain access to private resources and PostgreSQL system information.

References

  • docs.ckan.org/en/2.10/changelog.html
  • docs.ckan.org/en/2.11/changelog.html
  • docs.ckan.org/en/2.11/extensions/plugin-interfaces.html
  • docs.ckan.org/en/2.11/maintaining/configuration.html
  • github.com/advisories/GHSA-h7j7-3rx6-xvcg
  • github.com/ckan/ckan
  • github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcg
  • nvd.nist.gov/vuln/detail/CVE-2026-42031

Code Behaviors & Features

Detect and mitigate CVE-2026-42031 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.10.10, all versions starting from 2.11.0 before 2.11.5

Fixed versions

  • 2.10.10
  • 2.11.5

Solution

Upgrade to versions 2.10.10, 2.11.5 or above.

Impact 8.2 HIGH

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

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/ckan/CVE-2026-42031.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:26 +0000.