{"cve":"CVE-2021-40642","nvd":{"published":"2022-06-29T11:15:16.533","modified":"2026-06-17T04:07:12.367","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3},"cwes":["CWE-311"],"references":["https://github.com/textpattern/textpattern/commit/211fab0093999f59b0b61682aa988ac7d8337aa9","https://www.huntr.dev/bounties/aadbe434-a376-443b-876f-2a1cbab7847b/","https://github.com/textpattern/textpattern/commit/211fab0093999f59b0b61682aa988ac7d8337aa9","https://www.huntr.dev/bounties/aadbe434-a376-443b-876f-2a1cbab7847b/"],"products":["textpattern:textpattern"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2021-40642","score":0.00536,"percentile":0.45197,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}