CVE-2026-104021
Last modified
CVE-2026-104021 is a high-severity vulnerability rated 7.2/10 on the CVSS scale. 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. EPSS estimates a 0.40% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| hostspa | Fastcache by Host.it | <= 1.7.4 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-104021?
How severe is CVE-2026-104021?
How do I fix CVE-2026-104021?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-103998The Form Maker by 10Web – Mobile-Friendly Drag & Drop Contac…6.1
- CVE-2026-104002A fail-open error handling issue within the data masking uti…5.3
- CVE-2026-104006The SpeedyCache – Cache, Optimization, Performance plugin fo…3.7
- CVE-2026-104018An improper privilege management vulnerability (CWE-269) exi…8.8
- CVE-2026-104019OS command injection in the Studio Space startup validation …9
- CVE-2026-104020Uncontrolled recursion in the Ion reader in Amazon Ion Pytho…7.5
- CVE-2026-104022The Academy LMS – AI Course Builder, Quizzes, Certificates &…5.4
- CVE-2026-104023The Smart Popup by Supsystic plugin for WordPress is vulnera…4.9
- CVE-2026-104026In Sapling SCM prior to v0.2.20260929-102736, control charac…7.8
- CVE-2026-104028The Anton Extensions WordPress plugin through 1.2.2 does not…9.8
- CVE-2026-104029A flaw was found in SSSD. A local attacker can exploit this …3.3
- CVE-2026-104030A flaw was found in sssd. This vulnerability allows a local …5.5
Are you affected by CVE-2026-104021?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
