Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40186: ApostropheCMS is an open-source Node.js content management system

30
Routine
MEDIUM 6.1DOWNGRADEUPGRADE

CVE-2026-40186 is a medium-severity flaw (CVSS 6.1) affecting apostrophecms, sanitize-html. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

ApostropheCMS is an open-source Node.js content management system. A regression introduced in commit 49d0bb7, included in versions 2.17.1 of the ApostropheCMS-maintained sanitize-html package bypasses allowedTags enforcement for text inside nonTextTagsArray elements (textarea and option). ApostropheCMS version 4.28.0 is affected through its dependency on the vulnerable sanitize-html version. The code at packages/sanitize-html/index.js:569-573 inc

Why this priority

  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score6.1 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.2% (top 84%)
CISA exploited listNo
WeaknessCWE-79
Published2026-04-15
Last modified2026-10-26
Publisher (CNA): GitHub, Inc. · Vendor: apostrophecms

Share: LinkedIn · X · Reddit

Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

apostrophecms apostrophecms DOWNGRADE
Affected: 4.29.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 4.29.0
1. Check installed version
apt-cache policy apostrophecms || rpm -q apostrophecms || apostrophecms --version
2. No fixed release: DOWNGRADE to a release before 4.29.0 (Debian / Ubuntu)
apt-cache madison apostrophecms sudo apt install apostrophecms=<VERSION_BEFORE_4.29.0> sudo apt-mark hold apostrophecms
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list apostrophecms sudo dnf downgrade apostrophecms-<VERSION_BEFORE_4.29.0> sudo dnf versionlock add apostrophecms
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
apostrophecms sanitize-html UPGRADE
Affected: <= 2.17.1
Fixed in: newer than 2.17.1
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls sanitize-html
2. UPGRADE to newer than 2.17.1
npm install sanitize-html@">2.17.1"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40186?

apostrophecms: downgrade or apply the listed mitigation; sanitize-html: upgrade to newer than 2.17.1. Exact commands for each OS are on this page.

Is CVE-2026-40186 being exploited?

CVE-2026-40186 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40186 affect?

CVE-2026-40186 affects apostrophecms, sanitize-html. Severity is medium (CVSS 6.1). ApostropheCMS is an open-source Node.js content management system. A regression introduced in commit 49d0bb7, included in versions 2.17.1 of the ApostropheCMS-maintained sanitize-html package bypasses allowedTags enforcement for text inside

How urgent is CVE-2026-40186?

Priority 30/100. Public exploit reference

Software pages

Node.js vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.