BreachSpiderVerified, not vibes

CVE-2021-21031 in Magento

Medium 5.6

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) do not adequately invalidate user sessions. Successful exploitation could lead to unauthorized access to restricted resources. Access to the admin console is not required for successful exploitation.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.05.6
EPSS1.6%
EPSS percentile76th
FixUnknown

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component.

Affected products and versions

VendorProductAffected versions
Magento Magento 2.3.6 2.4.0 2.4.1 < 2.3.6

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) do not adequately invalidate user sessions. Successful exploitation could lead to unauthorized access to restricted resources. Access to the admin console is not required for successful exploitation.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-21031
BreachSpider IDBS-2021-GLOBAL-240724-M
CVSS vectorCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Published2021-02-11
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-613: CWE-613

Analysis AI-written, not human-reviewed

Magento versions 2.4.1 and earlier, 2.4.0-p1 and earlier, and 2.3.6 and earlier are vulnerable to a session invalidation issue, allowing unauthorized access to restricted resources without requiring admin console access.

An attacker can exploit this vulnerability by manipulating user sessions, potentially leading to unauthorized access to sensitive data and functionalities within the Magento platform.

Questions

What is CVE-2021-21031?

Magento versions 2.4.1 and earlier, 2.4.0-p1 and earlier, and 2.3.6 and earlier are vulnerable to a session invalidation issue, allowing unauthorized access to restricted resources without requiring admin console access.

What is the CVSS score for CVE-2021-21031?

CVE-2021-21031 has CVSS 5.6 (Medium). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L. EPSS: 1.6%.

Is CVE-2021-21031 actively exploited?

No confirmed active exploitation of CVE-2021-21031 as of 2026-09-25.

How do I remediate CVE-2021-21031?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2021-21031?

CVE-2021-21031 affects Magento Magento.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Magento","product":"Magento","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.