Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages
Next.js and React

CKEditor 4 shows a 'this version is not secure' notification

ErrorThis CKEditor 4.22.1 version is not secure. Consider upgrading to the latest one

Short answer

CKEditor 4.22 and older run a version check that shows this notification, because those releases no longer get security fixes. The real fix is to move to CKEditor 4 LTS (4.25.0-lts or newer, under the Extended Support Model) or to CKEditor 5. Setting config.versionCheck to false only hides the message.

  • Applies to CKEditor 4.22.1, CKEditor 4 LTS 4.25.x, React 19
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Fix it fast

  1. 1Find out which cause you have

    Find out which CKEditor version is actually loaded. The browser console tells you, whatever package.json says.

    // browser console on the page with the editor
    CKEDITOR.version
  2. 2Match what you see, then jump to its fix

    1. 1The notification names a version number of 4.22.1 or lowerYou are running 4.22.x or older, which gets no security fixesFix
    2. 2You are on 4.22.x and cannot upgrade yet, and the bar is only a nuisance for end usersThe notification is a feature you can switch off, with a costFix

What does the error look like?

  • This CKEditor 4.22.1 version is not secure. Consider upgrading to the latest one
  • CKEditor notification bar at the top of the editor

Cause 1 of 2

You are running 4.22.x or older, which gets no security fixes

1Check

The version check was added in 4.22.0 and is on by default in 4.22 and below. The release notes for 4.24.0-lts and 4.25.0-lts state that all versions below the new release can no longer be considered secure.

npm ls | grep -i ckeditor

2Fix

Choose one path. Either get the Extended Support Model and install CKEditor 4 LTS 4.25.0-lts or newer (activate the key as CKEditor's LTS key activation guide describes), or migrate to CKEditor 5. Within CKEditor 4, versions 4.23.0 and above are the LTS line.

# check which LTS build you are entitled to, then load that build
# (the notification names the version it recommends)
npm ls ckeditor4

3Verify

Reload the page and read the version, then check that the notification is gone.

CKEDITOR.version

Confirmed by ckeditor.com

Did this fix it?

Cause 2 of 2

The notification is a feature you can switch off, with a cost

1Check

config.versionCheck exists since 4.22.0. It is enabled by default in 4.22 and below and disabled by default in the LTS line. The docs strongly recommend upgrading instead of disabling it.

grep -rn "versionCheck" src/

2Fix

Turn it off on the editor config only as a stop-gap, and plan the upgrade. This hides the message and does not make the editor secure.

CKEDITOR.replace('editor1', {
  versionCheck: false,
});

3Verify

Reload the page. The bar should no longer appear.

CKEDITOR.instances.editor1.config.versionCheck

Confirmed by ckeditor.com

Did this fix it?

How do I stop it coming back?

  • Put the CKEditor upgrade or replacement on the roadmap, and note that the open-source 4.22.1 line gets no fixes.
  • Sanitize rich text on the server too, whatever editor produced it.
  • Check the editor release notes when you review dependencies.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine built on the same technologies:

Related fixes

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.