Vulnerability · Published Sep 14, 2026 · Assigned by GitHub_M
CVE-2026-54529SQLAdmin: Unvalidated sortBy parameter in `ModelView` bypasses `column_sortable_list`
Medium 5.3
In plain English
A medium-severity improper input validation in sqladmin from smithyhq. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
SQLAdmin is a flexible Admin interface for SQLAlchemy models. Prior to 0.27.1, ModelView.sort_query in sqladmin/models.py accepts the attacker-controlled sortBy list-view query parameter without enforcing the configured column_sortable_list server-side allow-list in self._sort_fields. The value is resolved with getattr and passed to relationship joins and order_by, allowing requests to sort by columns hidden from column_list and by related-model columns through dotted paths. The resulting row order forms an information-exposure oracle for unexposed values, and reversing ascending and descending order confirms their relative ordering. Pairing sortBy with searchable or filterable columns and pagination can narrow the oracle toward specific values, but exact recovery depends on the application's available fields and data. This issue is fixed in version 0.27.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | sqladmin | 0.27.1 | GHSA-ccg5-9c8w-xh6v |
| PyPI | sqladmin | 0.27.1 | PYSEC-2026-3922 |
Affected products (as reported)
Weakness: CWE-20, CWE-200, CWE-248, CWE-639 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/smithyhq/sqladmin/security/advisories/GHSA-ccg5-9c8w-xh6v x_refsource_CONFIRM
- https://github.com/smithyhq/sqladmin/commit/741635f18f93c020bfe355167ab257da9a6ca99a x_refsource_MISC
- https://github.com/smithyhq/sqladmin/releases/tag/0.27.1 x_refsource_MISC