Skip to content

CVE-2026-22028 Preact has JSON VNode Injection issue

HighCVSS 7.2 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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

Upgrade path

21 packages: 2 fixed, 19 with no fix yet.

PackageAffectedFixed inStatus
debian/node-preact(Debian 11) = 8.2.5-2; = 8.2.5-3; All versions No fix listed No fix yet
debian/node-preact(Debian 12) = 8.2.5-3; All versions No fix listed No fix yet
debian/node-preact(Debian 13) = 8.2.5-3; All versions No fix listed No fix yet
debian/node-preact(Debian 14) = 8.2.5-3; All versions No fix listed No fix yet
redhat/com.github.streamshub-console(Red Hat amq_streams 3) All versions No fix listed No fix yet
redhat/firefox(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
redhat/openshift-logging/fluentd-rhel9(Red Hat logging 5) All versions No fix listed No fix yet
redhat/openshift-logging/logging-view-plugin-rhel9(Red Hat logging 5) All versions No fix listed No fix yet
redhat/openshift4/ose-agent-installer-ui-rhel9:1774977480(Red Hat openshift 4.20 el9) All versions No fix listed No fix yet
redhat/polkit(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/rhoai/odh-dashboard-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/thunderbird(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
ubuntu/node-preact(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-preact(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/node-preact(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/node-preact(Ubuntu 26.10) All versions No fix listed No fix yet
npm preact(npm) >= 10.26.5, < 10.26.10; >= 10.27.0, < 10.27.3; >= 10.28.0, < 10.28.2 10.26.10, 10.27.3, 10.28.2 Fixed
preactjs preact = >= 10.26.5, < 10.26.10; = >= 10.27.0, < 10.27.3; = >= 10.28.0, < 10.28.2; >= 10.26.5, < 10.26.10 +2 more 10.26.10, 10.27.3, 10.28.2 Fixed

Affected products

ProductAffected versionsFixed in
preactjs preact = >= 10.26.5, < 10.26.10 No fix listed
preactjs preact = >= 10.27.0, < 10.27.3 No fix listed
preactjs preact = >= 10.28.0, < 10.28.2 No fix listed
npm preact(npm) >= 10.26.5, < 10.26.10 10.26.10
npm preact(npm) >= 10.27.0, < 10.27.3 10.27.3
npm preact(npm) >= 10.28.0, < 10.28.2 10.28.2
debian/node-preact(Debian:11) All versions No fix listed
debian/node-preact(Debian:11) = 8.2.5-2 No fix listed
debian/node-preact(Debian:11) = 8.2.5-3 No fix listed
debian/node-preact(Debian:12) All versions No fix listed
debian/node-preact(Debian:12) = 8.2.5-3 No fix listed
debian/node-preact(Debian:13) All versions No fix listed
debian/node-preact(Debian:13) = 8.2.5-3 No fix listed
debian/node-preact(Debian:14) All versions No fix listed
debian/node-preact(Debian:14) = 8.2.5-3 No fix listed
ubuntu/node-preact(Ubuntu:22.04) All versions No fix listed
redhat/openshift4/ose-agent-installer-ui-rhel9:1774977480(Red Hat:openshift:4.20::el9) All versions No fix listed
redhat/openshift-logging/fluentd-rhel9(Red Hat:logging:5) All versions No fix listed
redhat/openshift-logging/logging-view-plugin-rhel9(Red Hat:logging:5) All versions No fix listed
redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat:openshift_lightspeed:1) All versions No fix listed
redhat/firefox(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/polkit(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/thunderbird(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat:openshift_ai) All versions No fix listed
Show 8 more
ProductAffected versionsFixed in
redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/com.github.streamshub-console(Red Hat:amq_streams:3) All versions No fix listed
ubuntu/node-preact(Ubuntu:24.04) All versions No fix listed
ubuntu/node-preact(Ubuntu:26.04) All versions No fix listed
ubuntu/node-preact(Ubuntu:26.10) All versions No fix listed
preactjs preact >= 10.26.5, < 10.26.10 10.26.10
preactjs preact >= 10.27.0, < 10.27.3 10.27.3
preactjs preact >= 10.28.0, < 10.28.2 10.28.2

References