PerfreeBlog's Pagination Injection and Missing Authorization Compress the Path to Admin Data
Three CVEs published for PerfreeBlog describe security problems in its backend pagination and code-generation paths. CVE-2026-139980 and CVE-2026-139982 are SQL injection issues. CVE-2026-139981 is a missing-authorization problem that can disclose database schema information.
How the injection is reached
The public technical write-up for CVE-2026-139980 identifies sortingFields[].field as an injection point. Several backend pagination endpoints rely on authentication without an endpoint-specific role check. Because open registration is enabled by default, a self-registered user can obtain a token and reach the shared sort-construction logic. The field value is concatenated into an SQL ORDER BY clause.
The write-up demonstrates a time-based test against version 4.0.11. The same pattern appears in the pagination helper used by multiple controllers. An affected endpoint can therefore expose data or allow time-based inference even when write operations require stronger permissions.
Why authorization and parsing must be reviewed together
The missing authorization annotation broadens who can reach the endpoint. The unsafe SQL construction determines what they can do once they arrive. Fixing only one layer leaves a risky path: a corrected query still exposes backend data to ordinary users, while a stricter role check does not repair SQL injection for users who retain access.
Remediation
Upgrade to a PerfreeBlog release that contains the vendor fixes for all three CVEs. If no fixed release is available for the deployed version, disable open registration, restrict backend routes at the reverse proxy, and limit access to trusted administrators.
Use parameterized sort fields or map user input to a fixed allowlist. Do not pass raw column names into an order-by fragment. Add endpoint-level authorization tests for ordinary registered users.
Verification
Review web logs for requests to /api/auth/** pagination endpoints with unusual sortingFields values. Check for time delays, database errors, and schema-discovery requests from newly registered accounts. Rotate database and application secrets if the host was exposed and the vulnerable path was reachable.
