CVE-2026-104021
Fastcache by Host.it <= 1.7.4 - Authenticated (Administrator+) Code Injection via .htaccess Directive Injection via 'cache_cookie_exclude' Setting
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running hostspa Fastcache by Host.it <= 1.7.4
Vulnerability facts
- Affected
- hostspa Fastcache by Host.it <= 1.7.4
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.75% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-94
- Modified
Description
The Fastcache by Host.it plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.7.4 via the `fastcache_settings[cache_cookie_exclude][]` parameter. This is due to the plugin registering the `cache_cookie_exclude` setting via `register_setting()` without a `sanitize_callback`, while `buildSiteHtaccessRules()` applies only `trim()` to each cookie value before interpolating it directly into an Apache `RewriteCond` line — a normalization that strips surrounding whitespace but leaves embedded newlines intact, allowing an attacker to break out of the capture group and append arbitrary directives. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary Apache directives into the site's `.htaccess` file via `file_put_contents()`, enabling server-level configuration changes such as setting `php_value auto_prepend_file` to execute attacker-controlled PHP code on every request.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| hostspa Fastcache by Host.it | <= 1.7.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-104021. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-104021.md Affected: hostspa Fastcache by Host.it <= 1.7.4 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for hostspa Fastcache by Host.it: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Core/Platform/Utility.php#L545
- https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Core/Platform/Utility.php#L420
- https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Core/Platform/Utility.php#L521
- https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Dispatcher.php#L480
- https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Admin.php#L73
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3735944%40fastcache-by-host-it&new=3735944%40fastcache-by-host-it
FAQ
Is CVE-2026-104021 being exploited?
There is no confirmed exploitation: CVE-2026-104021 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-104021?
High: CVSS 7.2 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-104021?
hostspa Fastcache by Host.it <= 1.7.4.
Is there a fix for CVE-2026-104021?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-104021?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.