Skip to content
RedCVE

CVE-2026-104021Hostspa Fastcache By Host.it code injection

hostspaPublished:

CVSS score

7.2

High

CVSS 3.1 from wordfence.com

Exploit probability (EPSS)

0.39%

0.39% chance of exploitation in the next 30 days, higher than 33.6% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: security@wordfence.com

How to fix it, step by step

  1. Check whether you're affected

    Find every system running hostspa Fastcache By Host.it and compare its version with the affected versions.

  2. Watch for an official fix

    No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

Affected productsVersions
hostspa Fastcache By Host.it≤ 1.7.4

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-104021 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-104021?

CVE-2026-104021 has a CVSS 3.1 base score of 7.2 (high).

Which versions are affected?

Hostspa Fastcache By Host.it (≤ 1.7.4)

Is there a patch for CVE-2026-104021?

No patch is linked in the official record yet. Watch the vendor's security advisories.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.