Tags are one of those Joomla features most sites use without thinking about it, and this fix is for them.
At a glance
- CVE: CVE-2026-35222. Joomla’s advisory is 20260507, “Authenticated blind SQLi in com_tags”. Small heads-up: that advisory page shows the CVE number as “CVE-2026-352212”, which is a typo. NVD links the same advisory to CVE-2026-35222. It’s one of 18 core fixes in the Joomla 5.4.6 / 6.1.1 security release.
- Severity: NVD gives it 9.8 (Critical) on CVSS 3.1, a score that assumes the attacker doesn’t need to log in. Joomla, which issued the CVE, rates it 6.9 (Medium) on CVSS 4.0 and calls the severity “Moderate” with a “Low” probability, because its score assumes the attacker already has a high-privileged account.
- Affected: Joomla 4.0.0 to 5.4.5 and 6.0.0 to 6.1.0, per Joomla’s advisory. (NVD’s version matching goes back further, to 3.0.0.)
- Known exploited: Not that anyone has reported. It isn’t on CISA’s KEV list.
What’s going on
The Tags component (com_tags) lets you choose how tagged items are sorted, including the ordering direction: ascending or descending. That choice ends up in the ORDER BY part of an SQL query. Joomla describes the bug as “improperly validated order clauses”: the ordering-direction setting in Tags’ options wasn’t checked against its list of allowed values. The 5.4.6 fix adds that check, so only Ascending or Descending are accepted.
When a value that should only ever be ASC or DESC can be something else, and it lands in a query, you get SQL injection: a way to slip your own database commands into a query the site runs. It’s “blind”, so the attacker can’t see query results directly and has to work out the data from how the site behaves. Joomla’s own score puts the impact on reading data, not on changing or breaking anything.
Who’s at risk? Joomla’s advisory calls it “authenticated”, and its score assumes a high-privileged account, so this isn’t a drive-by attack from an anonymous visitor. The worry is a compromised or overly trusted backend account being used to pull data out of your database. It was reported by Adrian Junge (vurlo) and Federico Brasili.
Fixed in the same release: the same update also closed CVE-2026-35221 (SQL injection in Smart Search), CVE-2026-35223 (a missing permission check in the com_config API), CVE-2026-40383 (local file inclusion through view layouts), CVE-2026-48898 and CVE-2026-48904 (two privilege escalations in com_users) and CVE-2026-48899 (sample data plugins), plus two MFA bypasses, a path traversal in the media API, a CSRF bug and four XSS fixes. One update covers the lot.
Timeline
- Reported to Joomla: 2026-03-31
- Disclosed: 2026-05-26 (Joomla advisory; the CVE was published the same day)
- Patch released: 2026-05-26 (Joomla 5.4.6 and 6.1.1)
== UPDATE ==
This was fixed back in May, so a site that’s been kept up to date is already covered.
- Patch available: Yep.
- Fixed in: Joomla 5.4.6 and 6.1.1. Later releases include the fix too, and Joomla has shipped several more security releases since (the newest at the time of writing are 5.4.11 and 6.2.1, from 2026-11-24), so go straight to the latest on your branch.
- How to apply: Back up your files and database first. Then, in the Joomla administrator, go to System → Update → Joomla, check for updates and install. Prefer the terminal? From your site’s root,
php cli/joomla.php core:update:checkand thenphp cli/joomla.php core:updatedo the same job. You don’t have to jump to Joomla 6 for this: 5.4 has the fix, and Joomla says 5.4 keeps getting security patches until 12 October 2027. Still on Joomla 4? It’s in the affected range, but the advisory only lists fixed releases for 5.4 and 6.x, so it’s time to plan the move to 5.4. - If you can’t patch yet: Joomla’s advisory doesn’t offer a workaround. Since this one needs a privileged login, tighten who has one: review your backend accounts, remove any you don’t need, and make sure the rest use strong, unique passwords. It’s also worth a quick look at the Tags component’s Options to check the ordering direction is a normal Ascending or Descending.
References
- https://developer.joomla.org/security-centre/1039-20260507-core-authenticated-blind-sqli-in-com-tags.html
- https://www.joomla.org/announcements/release-news/joomla-6-1-1-5-4-6-security-bugfix-release.html
- https://nvd.nist.gov/vuln/detail/CVE-2026-35222
- https://github.com/joomla/joomla-cms/compare/5.4.5...5.4.6
- https://developer.joomla.org/security-centre.html