CVE-2021-25979: Apostrophe CMS Insufficient Session Expiration Vulnerability

apostrophe Updated 02 Oct 2025

Summary

10/11/2021
Yes i
Critical
9.8

CVE-2021-25979: Apostrophe CMS Insufficient Session Expiration vulnerability. Affects apostrophe versions >= 2.63.0, < 3.4.0. Fixed in 3.4.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apostrophe CMS is an open-source content management system built on Node.js and MongoDB. It provides a flexible and extensible platform for creating and managing websites. The vulnerability identified as CVE-2021-25979 affects versions 2.63.0 to 3.3.1 of Apostrophe CMS. This vulnerability allows unauthenticated remote attackers to hijack recently logged-in users' sessions. The session expiration mechanism is insufficient, enabling attackers to exploit active sessions and gain unauthorized access to user accounts.

Vulnerability Detail

The insufficient session expiration vulnerability in Apostrophe CMS poses a significant security risk. Attackers can exploit this vulnerability to take control of active user sessions, potentially leading to unauthorized access, data theft, or privilege escalation. The vulnerability arises from a flaw in the session management mechanism, which fails to terminate sessions after a certain period of inactivity. As a result, even after a user logs out or their session should expire, the session remains active and can be hijacked by an attacker. This vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Latest published version: 4.34.0 as of 23 Oct 2026

npm install apostrophe@4.34.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.4.0

This is the first release that contains the fix.

npm install apostrophe@3.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is advised to follow the recommended steps for fixing the vulnerability by upgrading to the latest version or archiving/moving the user account.

Conclusion

The Apostrophe CMS Insufficient Session Expiration vulnerability (CVE-2021-25979) poses a critical security risk, allowing unauthenticated attackers to hijack active user sessions. Upgrading to the fixed version or taking appropriate actions to disable the existing session is crucial to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for apostrophe →

Share this vulnerability

FAQ

Apostrophe CMS is an open-source content management system built on Node.js and MongoDB. It provides a flexible and extensible platform for creating and managing websites.

The vulnerability allows unauthenticated remote attackers to hijack recently logged-in users' sessions. This can lead to unauthorized access, data theft, or privilege escalation.

Versions between 2.63.0 and 3.3.1 of Apostrophe CMS are affected by this vulnerability.

To fix this vulnerability, it is recommended to upgrade to version 3.4.0 of Apostrophe CMS. Users on older versions can archive or move the user account in question to disable the existing session.

There is no specific workaround mentioned for this vulnerability. It is advised to follow the recommended steps for fixing the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for apostrophe.

How To Fix

Latest published version: 4.34.0 as of 23 Oct 2026

npm install apostrophe@4.34.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.4.0

This is the first release that contains the fix.

npm install apostrophe@3.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback