CVE-2021-40642

CVE-2021-40642 is a medium-severity vulnerability in Textpattern with a CVSS 3.x base score of 4.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-311.

Key facts

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.

Frequently asked questions

What is CVE-2021-40642?
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.
How severe is CVE-2021-40642?
CVE-2021-40642 has a CVSS 3.x base score of 4.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2021-40642 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (38th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2021-40642?
CVE-2021-40642 affects Textpattern. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2021-40642?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2021-40642 published?
CVE-2021-40642 was published on 2022-06-29 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Textpattern

All CVEs affecting Textpattern →

Other CWE-311 (Missing Encryption of Sensitive Data) vulnerabilities

Browse all CWE-311 (Missing Encryption of Sensitive Data) vulnerabilities →