This one had been sitting in Joomla’s core for a long time: the affected range starts at Joomla 3.2.1.
At a glance
- CVE: CVE-2026-40383. Joomla’s advisory is 20260509, “LFI in HTMLView layout parameter”. 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 7.5 (High) on CVSS 4.0 and calls the severity “High”, but with a “Low” probability, because its score assumes a high-privileged account plus some extra conditions being in place.
- Affected: Joomla 3.2.1 to 5.4.5 and 6.0.0 to 6.1.0.
- Known exploited: Not that anyone has reported. It isn’t on CISA’s KEV list.
What’s going on
Joomla views can be shown with different layouts, and a layout name can point at a template override using a template:layout form. When Joomla worked out which layout file to load, it cleaned up the layout name, but not the template part in front of the colon. The 5.4.6 fix adds that missing clean-up, stripping out anything that isn’t a letter, number, underscore or dash.
That gap is what’s called a local file inclusion (LFI): tricking an app into loading a file from somewhere else on the server’s disk instead of the one it meant to load. Depending on what’s on the server, that can leak information, or, if an attacker can also get a file of their own onto the box, run their code. Joomla’s score reflects that, rating the impact high for reading, changing and disrupting things.
Who should worry? Joomla rates the probability as low, since its score assumes the attacker already has a high-privileged account and that other conditions line up. Still, the affected range is huge, so most Joomla sites that haven’t updated since May are in it. It was reported by Doyensec in collaboration with Claude and Anthropic Research.
Fixed in the same release: the same update also closed CVE-2026-35221 and CVE-2026-35222 (SQL injection in Smart Search and Tags), CVE-2026-35223 (a missing permission check in the com_config API), 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-04-15
- 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, for Joomla 5.4 and 6.x.
- 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 3 or 4? Both are in the affected range, but the advisory only lists fixed releases for 5.4 and 6.x, so moving up to 5.4 is the way out. - If you can’t patch yet: Joomla’s advisory doesn’t offer a workaround. Since the attack needs a privileged login, the best stopgap is tightening who has one: review your backend accounts, remove any you don’t need, and make sure the rest use strong, unique passwords.
References
- https://developer.joomla.org/security-centre/1041-20260509-core-lfi-in-htmlview-layout-parameter.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-40383
- https://github.com/joomla/joomla-cms/compare/5.4.5...5.4.6
- https://developer.joomla.org/security-centre.html