- Package
- sulu/sulu
- Fixed in
- 2.6.25, 3.0.8
- Published
- Wed 23 Sep 2026, 19:21 LisbonUpdated Mon 26 Oct 2026, 01:26 Lisbon
- Installs on Packagist
- 1M
In plain words
An unauthenticated visitor can manipulate content-repository queries on public pages that render a Smart Content element with category filtering enabled. This can expose content they should not see, such as unpublished pages, or cause query errors and resource-intensive queries that degrade availability. This path cannot be used to modify data.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| sulu/sulu | < 2.6.25 | 2.6.25 |
| sulu/sulu | >= 3.0.0, < 3.0.8 | 3.0.8 |
Am I affected?
Check composer.lock for sulu/sulu versions below 2.6.25, or at least 3.0.0 but below 3.0.8. If your version is affected, check whether any publicly reachable page renders a Smart Content element with category filtering enabled. Those elements process the public categories query parameter. The fixed versions are 2.6.25 and 3.0.8.
What to do
Check which version you have, then update to a fixed release for your branch (2.6.25, 3.0.8):
composer show sulu/sulu | grep versions
composer update sulu/sulu
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
If you cannot upgrade immediately, manually cast each ID to an integer where it is concatenated into the category WHERE clause in the content Smart Content query builder, and defensively do the same for tag and audience-targeting IDs. Alternatively, disable category filtering on publicly reachable Smart Content elements until the patch is applied.
The advisory's description
Impact
An unauthenticated JCR-SQL2 injection exists in the Smart Content category filter of the 2.x content query builder.
Category IDs supplied through the public ?categories= query parameter are only trimmed and are then concatenated directly into a JCR-SQL2 WHERE clause, without the numeric validation that the equivalent tag filter already performs. Any public page that renders a Smart Content element with category filtering enabled evaluates this parameter, so no authentication or special configuration beyond a category-filtered content block is required.
An anonymous visitor can therefore:
- inject boolean conditions to infer the existence of, and disclose, content nodes they should not see (for example unpublished pages) via blind boolean-based extraction; and
- submit malformed query fragments that cause query errors or resource-intensive queries, degrading availability.
Because the sink is a JCR-SQL2 query, the impact is limited to reading and enumerating content-repository nodes and to error/denial-of-service conditions; it cannot be used to modify data through this path.
Patches
Fixed in 2.6.25 and 3.0.8. Category, tag, and audience-target-group IDs are now cast to integers before they are used in the JCR-SQL2 query, so no attacker-controlled characters can reach the query.
Workarounds
If you cannot upgrade immediately:
- Apply the fix manually — cast each ID to an integer where it is concatenated into the category (and, defensively, tag and audience-targeting)
WHEREclause in the content Smart Content query builder. - Alternatively, disable category filtering on publicly reachable Smart Content elements until the patch is applied.
Weakness: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
The advisory
- GitHub Advisory Database: GHSA-jg26-q8hg-3pq4, with who is affected and how
- OSV.dev: GHSA-jg26-q8hg-3pq4
- The week's digest, with the other advisories from 21 Sep 2026
- All advisories for sulu/sulu