# CVE-2026-22028: Preact has JSON VNode Injection issue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.2
- **CVSS:** 7.2 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Unreported
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-843
- **Aliases:** GHSA-36hm-qxxp-pg3m
- **Published:** 2026-01-07T19:28:15.000Z
- **Modified:** 2026-09-10T03:50:32.404Z

## Who should check

- Projects that depend on npm package preact (\>= 10.26.5, \< 10.26.10)
- Anyone running preactjs preact \>= 10.26.5, \< 10.26.10; \>= 10.27.0, \< 10.27.3; \>= 10.28.0, \< 10.28.2

## Description

Preact, a lightweight web development framework, JSON serialization protection to prevent Virtual DOM elements from being constructed from arbitrary JSON. A regression introduced in Preact 10.26.5 caused this protection to be softened. In applications where values from JSON payloads are assumed to be strings and passed unmodified to Preact as children, a specially-crafted JSON payload could be constructed that would be incorrectly treated as a valid VNode. When this chain of failures occurs it can result in HTML injection, which can allow arbitrary script execution if not mitigated by CSP or other means. Applications using affected Preact versions are vulnerable if they meet all of the following conditions: first, pass unmodified, unsanitized values from user-modifiable data sources (APIs, databases, local storage, etc.) directly into the render tree; second assume these values are strings but the data source could return actual JavaScript objects instead of JSON strings; and third, the data source either fails to perform type sanitization AND blindly stores/returns raw objects interchangeably with strings, OR is compromised (e.g., poisoned local storage, filesystem, or database). Versions 10.26.10, 10.27.3, and 10.28.2 patch the issue. The patch versions restore the previous strict equality checks that prevent JSON-parsed objects from being treated as valid VNodes. Other mitigations are available for those who cannot immediately upgrade. Validate input types, cast or validate network data, sanitize external data, and use Content Security Policy (CSP).

## Affected and fixed versions

- npm `preact`: affected \>= 10.26.5, \< 10.26.10; fixed 10.26.10, 10.27.3, 10.28.2 (osv)
- preactjs preact: \>= 10.26.5, \< 10.26.10; \>= 10.27.0, \< 10.27.3; \>= 10.28.0, \< 10.28.2 (cvelist)

## Mitigation

- Upgrade preact to one of 10.26.10, 10.27.3, 10.28.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-22028. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-22028.md
Affected: preact >= 10.26.5, < 10.26.10
Fixed in: 10.26.10, 10.27.3, 10.28.2

Steps:
1. Search this machine and project for preact (npm), preactjs preact: 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.
```

## FAQ

### Is CVE-2026-22028 being exploited?

There is no confirmed exploitation: CVE-2026-22028 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-22028?

High: CVSS 7.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-22028?

preact \>= 10.26.5, \< 10.26.10.

### Is there a fix for CVE-2026-22028?

Yes. Fixed in 10.26.10, 10.27.3, 10.28.2. Upgrade preact to one of 10.26.10, 10.27.3, 10.28.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-22028?

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.

## References

- vendor: <https://github.com/preactjs/preact/security/advisories/GHSA-36hm-qxxp-pg3m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-22028>
- other: <https://github.com/preactjs/preact>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-22028>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-36hm-qxxp-pg3m> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-22028> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-22028>
