FedoraOperating system · Fedoraproject

CVE-2023-28439

MEDIUM · 6.1 CVSS v3.1 Published 2023-03-22
Fix available
A fix is available. Upgrade to 4.21.0 or later.
See remediation →
68/100
Remediation priority · Elevated
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

CKEditor4 contains a cross-site scripting vulnerability in its Iframe Dialog and Media Embed packages. The XSS triggers only when: Content Security Policy is missing or inadequate, the editor is initialized on a non-textarea element (such as a div), and the editor instance is subsequently destroyed. This allows JavaScript code execution in the affected context.

MitigationUpgrade CKEditor4 to version 4.21.0 or later. If upgrading is not feasible, implement proper Content Security Policy headers to restrict iframe and script execution.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FedoraOperating system
Affected:= 37= 38= 39
CkeditorApplication
Affected:>= 4.0, < 4.21.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify CKEditor version
    Locate the ckeditor.js or ckeditor4.js file and check its version identifier, typically found in the file header comments or a version.js file. Alternatively, execute CKEDITOR.version in browser console if the editor is loaded.
    Affected if version is less than 4.21.0 (e.g., 4.20.0, 4.19.0, etc.)
  2. Verify editor initialization element type
    Search the application code for CKEDITOR.replace() or CKEDITOR.appendTo() calls. Examine the first parameter passed to these methods to determine the target element.
    Affected if the target element is a div, span, or any non-textarea element (e.g., CKEDITOR.replace('myDiv') or CKEDITOR.appendTo('myDiv', ...))
  3. Inspect Content Security Policy headers
    Review the HTTP response headers from the server serving the CKEditor page. Look for the Content-Security-Policy header and examine its directives, particularly frame-src, sandbox, and script-src.
    Affected if the Content-Security-Policy header is absent, or frame-src and script-src directives allow unsafe-inline or unspecified sources

You are affected if CKEditor version is below 4.21.0 AND the editor is initialized on a non-textarea element (such as a div) AND Content Security Policy is missing or inadequate.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.21.0 or later
Fixed in 4.21.0
Interim mitigation

Upgrade CKEditor4 to version 4.21.0 or later. If upgrading is not feasible, implement proper Content Security Policy headers to restrict iframe and script execution.

Recommended fix High confidence

CKEditor4 version 4.21.0 or later

  1. Upgrade CKEditor4 to version 4.21.0 or later to resolve the XSS vulnerability
  2. After upgrading, test the Iframe Dialog and Media Embed functionality to ensure the changes do not break existing workflows
  3. If the default `sandbox` attribute behavior causes issues with the Iframe Dialog plugin, configure `config.iframe_attributes` to restore the desired attributes
  4. If the Media Embed plugin regeneration causes issues, configure `config.embed_keepOriginalContent` to preserve original content
  5. Verify that Content Security Policy is properly configured on the web page as an additional defense layer
  6. For Fedora systems, ensure the corresponding CKEditor package updates are applied (Fedora 37, 38, 39 have the update)
Caveat Starting from version 4.21.0, the Iframe Dialog plugin applies the sandbox attribute by default (affects JavaScript execution in iframes), and the Media Embed plugin regenerates entire content by default (may change widget behavior). These can be reverted via config options if needed.

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Fedora Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,130
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-28439 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-28439 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data