# CVE-2022-24728: Cross-site Scripting in CKEditor4

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

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.24% (percentile 69, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** BIT-drupal-2022-24728, BIT-drupal-2022-24729, CVE-2022-24729, DRUPAL-CORE-2022-005, GHSA-4fc4-4p5g-6w89, GHSA-f6rf-9m92-x2hh
- **Published:** 2022-03-16T00:00:00.000Z
- **Modified:** 2026-09-19T18:10:19.000Z

## Who should check

- Projects that depend on npm package ckeditor4 (\< 4.18.0)
- Projects that depend on Packagist package drupal/core (\>= 8.0.0, \< 9.2.15; \>= 9.3.0, \< 9.3.8)
- Anyone running ckeditor4 \< 4.18.0

## Description

CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. A vulnerability has been discovered in the core HTML processing module and may affect all plugins used by CKEditor 4 prior to version 4.18.0. The vulnerability allows someone to inject malformed HTML bypassing content sanitization, which could result in executing JavaScript code. This problem has been patched in version 4.18.0. There are currently no known workarounds.

## Affected and fixed versions

- npm `ckeditor4`: affected \< 4.18.0; fixed 4.18.0 (osv)
- Packagist `drupal/core`: affected \>= 8.0.0, \< 9.2.15; \>= 9.3.0, \< 9.3.8; fixed 9.2.15, 9.3.8 (osv)
- ckeditor4: \< 4.18.0 (cvelist)

## Mitigation

- Upgrade ckeditor4 to 4.18.0 or later.
- Upgrade drupal/core to one of 9.2.15, 9.3.8 (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-2022-24728. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24728.md
Affected: ckeditor4 < 4.18.0; drupal/core >= 8.0.0, < 9.2.15; >= 9.3.0, < 9.3.8
Fixed in: 4.18.0, 9.2.15, 9.3.8

Steps:
1. Search this machine and project for ckeditor4 (npm), drupal/core (Packagist), ckeditor4: 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-2022-24728 being exploited?

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

### How serious is CVE-2022-24728?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-24728?

ckeditor4 \< 4.18.0; drupal/core \>= 8.0.0, \< 9.2.15; \>= 9.3.0, \< 9.3.8.

### Is there a fix for CVE-2022-24728?

Yes. Fixed in 4.18.0, 9.2.15, 9.3.8. Upgrade ckeditor4 to 4.18.0 or later. Upgrade drupal/core to one of 9.2.15, 9.3.8 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-24728?

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/ckeditor/ckeditor4/security/advisories/GHSA-4fc4-4p5g-6w89>
- vendor: <https://ckeditor.com/cke4/release/CKEditor-4.18.0>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WOZGMCYDB2OKKULFXZKM6V7JJW4ZZHJP/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VR76VBN5GW5QUBJFHVXRX36UZ6YTCMW6/>
- vendor: <https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-f6rf-9m92-x2hh>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-24728>
- vendor: <https://securitylab.github.com/advisories/GHSL-2022-009_ckeditor4>
- patch: <https://github.com/ckeditor/ckeditor4/commit/d158413449692d920a778503502dcb22881bc949>
- patch: <https://www.oracle.com/security-alerts/cpujul2022.html>
- patch: <https://www.drupal.org/sa-core-2022-005>
- other: <https://github.com/ckeditor/ckeditor4>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VR76VBN5GW5QUBJFHVXRX36UZ6YTCMW6>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WOZGMCYDB2OKKULFXZKM6V7JJW4ZZHJP>

## 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-2022-24728>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4fc4-4p5g-6w89> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/DRUPAL-CORE-2022-005> (license: <https://creativecommons.org/licenses/by/4.0/>)

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