# CVE-2023-28439: ckeditor4 plugins vulnerable to cross-site scripting caused by the editor instance destroying process

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2023-03-22T20:55:00.208Z
- Modified: 2026-06-17T05:47:44.453Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. A cross-site scripting vulnerability has been discovered affecting Iframe Dialog and Media Embed packages. The vulnerability may trigger a JavaScript code after fulfilling special conditions: using one of the affected packages on a web page with missing proper Content Security Policy configuration; initializing the editor on an element and using an element other than `<textarea>` as a base; and destroying the editor instance. This vulnerability might affect a small percentage of integrators that depend on dynamic editor initialization/destroy mechanism.

A fix is available in CKEditor4 version 4.21.0. In some rare cases, a security fix may be considered a breaking change. Starting from version 4.21.0, the Iframe Dialog plugin applies the `sandbox` attribute by default, which restricts JavaScript code execution in the iframe element. To change this behavior, configure the `config.iframe_attributes` option. Also starting from version 4.21.0, the Media Embed plugin regenerates the entire content of the embed widget by default. To change this behavior, configure the `config.embed_keepOriginalContent` option. Those who choose to enable either of the more permissive options or who cannot upgrade to a patched version should properly configure Content Security Policy to avoid any potential security issues that may arise from embedding iframe elements on their web page.

(As written by CVE List.)

## Affected

- ckeditor ckeditor4: < 4.21.0
- ckeditor ckeditor: from 4.0 before 4.21.0
- fedoraproject fedora: 37; 38; 39

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-vh5c-xwqv-cv9g> (vendor-advisory)
- <https://ckeditor.com/cke4/addon/embed> (product)
- <https://ckeditor.com/cke4/addon/iframe> (product)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GWKG2VCPJNETVCDTXU4X6FQ2PO6XCNGN/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VCYKD3JZWWA3ESOZG4PHJJEXT4EYIUIQ/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L4ODGOW6PYVOXHQSMWJBOCE6DXWAI33W/> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2023-28439](https://www.cve.org/CVERecord?id=CVE-2023-28439), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-28439](https://nvd.nist.gov/vuln/detail/CVE-2023-28439), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-28439 · Whole record: https://cve.day/CVE-2023-28439.json · Rebuilt by cve.day 2026-11-25T22:58:22.587Z
