{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-40642","published":"2022-06-29T11:15:16.533000Z","last_modified":"2026-06-17T04:07:12.367000Z","status":"Modified","cvss":{"version":"3.1","score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-311"],"cpes":[{"criteria":"cpe:2.3:a:textpattern:textpattern:*:*:*:*:*:*:*:*","part":"a","vendor":"textpattern","product":"textpattern","version_end_including":"4.8.7"}],"cpes_truncated":false,"vendors":["textpattern"],"products":["textpattern/textpattern"],"epss":{"score":0.00544,"percentile":0.39278,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":41,"links":{"html_es":"/es/cve/CVE-2021-40642/","html_en":"/en/cve/CVE-2021-40642/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40642","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40642"},"untrusted":{"vendor_name":"Textpattern","product_name":"Textpattern","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/textpattern/textpattern/commit/211fab0093999f59b0b61682aa988ac7d8337aa9","tags":["Patch","Third Party Advisory"]},{"url":"https://www.huntr.dev/bounties/aadbe434-a376-443b-876f-2a1cbab7847b/","tags":["Permissions Required","Third Party Advisory"]}]}}