BreachSpiderVerified, not vibes

CVE-2021-40642 in Textpattern

Medium 4.3

Textpattern CMS v4.8.7 and older vulnerability exists through Sensitive Cookie in HTTPS Session Without 'Secure' Attribute via textpattern/lib/txplib_misc.php. The secure flag is not set for txp_login session cookie in the application. If the secure flag is not set, then the cookie will be transmitted in clear-text ...

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

CVSS 3.14.3
EPSS0.5%
EPSS percentile39th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Textpattern Textpattern ≤ 4.8.7

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.

Exploitation

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

Official description

Textpattern CMS v4.8.7 and older vulnerability exists through Sensitive Cookie in HTTPS Session Without 'Secure' Attribute via textpattern/lib/txplib_misc.php. The secure flag is not set for txp_login session cookie in the application. If the secure flag is not set, then the cookie will be transmitted in clear-text if the user visits any HTTP URLs within the cookie's scope. An attacker may be able to induce this event by feeding a user suitable links, either directly or via another web site.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-40642
BreachSpider IDBS-2022-GLOBAL-307401-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Published2022-06-29
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-311: CWE-311

Related attack patterns (CAPEC)

CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-311

CAPEC-37 Retrieve Embedded Sensitive Data via CWE-311

CAPEC-65 Sniff Application Code via CWE-311

CAPEC-158 Sniffing Network Traffic via CWE-311

CAPEC-204 Lifting Sensitive Data Embedded in Cache via CWE-311

Show all 14

CAPEC-383 Harvesting Information via API Event Monitoring via CWE-311

CAPEC-385 Transaction or Event Tampering via Application API Manipulation via CWE-311

CAPEC-387 Navigation Remapping To Propagate Malicious Content via CWE-311

CAPEC-388 Application API Button Hijacking via CWE-311

CAPEC-477 Signature Spoofing by Mixing Signed and Unsigned Content via CWE-311

CAPEC-609 Cellular Traffic Intercept via CWE-311

CAPEC-157 Sniffing Attacks via CWE-311

CAPEC-384 Application API Message Manipulation via Man-in-the-Middle via CWE-311

CAPEC-386 Application API Navigation Remapping via CWE-311

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Textpattern CMS v4.8.7 and older versions allows sensitive cookies to be transmitted in clear-text over HTTP due to the absence of the 'Secure' attribute.

The vulnerability exists in the textpattern/lib/txplib_misc.php file where the txp_login session cookie is set without the 'Secure' attribute. This allows the cookie to be exposed in clear-text if the user accesses HTTP URLs within the cookie's scope, potentially leading to session hijacking.

Questions

What is CVE-2021-40642?

A vulnerability in Textpattern CMS v4.8.7 and older versions allows sensitive cookies to be transmitted in clear-text over HTTP due to the absence of the 'Secure' attribute.

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

CVE-2021-40642 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N. EPSS: 0.5%.

Is CVE-2021-40642 actively exploited?

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

How do I remediate CVE-2021-40642?

Priority: MEDIUM.

What systems are affected by CVE-2021-40642?

CVE-2021-40642 affects Textpattern Textpattern.

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":"Textpattern","product":"Textpattern","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.