CVE Database›Document archive›CVE-2026-22028

CVE-2026-22028

preact: Preact: Arbitrary script execution via JSON serialization protection bypass

Loading…

Severity

Moderate

Red Hat Product Security

6.1

CVSS 3.1

Review impact separately from score.

Published · January 8, 2026

Updated · November 3, 2026

Description

A flaw was found in Preact, a lightweight web development framework. A security regression allows an attacker to bypass JSON serialization protection, leading to HTML injection. This vulnerability arises when applications process unsanitized data from external sources, allowing malicious JSON to be interpreted as valid user interface elements. If exploited, this could enable arbitrary script execution, potentially compromising user data or system integrity.

Statement

This vulnerability is rated Moderate for Red Hat because it requires applications to process unsanitized, user-modifiable JSON data directly into the render tree, assuming it to be strings. This specific configuration is not common in Red Hat products by default. Red Hat AMQ, Red Hat Ansible Automation Platform, OpenShift Lightspeed, OpenShift Container Platform, Red Hat Enterprise Linux, Red Hat In-Vehicle OS, Red Hat OpenShift AI (RHOAI), Ansible Services, Hosted OpenShift, and cloud.redhat.com are affected if they meet the described conditions.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CWE-843 · Access of Resource Using Incompatible Type