{"id":"CVE-2021-40642","details":"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.","modified":"2026-07-08T22:14:16.057387Z","published":"2022-06-29T11:15:16.533Z","references":[{"type":"REPORT","url":"https://www.huntr.dev/bounties/aadbe434-a376-443b-876f-2a1cbab7847b/"},{"type":"FIX","url":"https://github.com/textpattern/textpattern/commit/211fab0093999f59b0b61682aa988ac7d8337aa9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/textpattern/textpattern","events":[{"introduced":"0"},{"last_affected":"8531fe45f8eb39d0497b265c18260af11beb361e"},{"fixed":"211fab0093999f59b0b61682aa988ac7d8337aa9"}],"database_specific":{"cpe":"cpe:2.3:a:textpattern:textpattern:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"4.8.7"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["4.8.7","4.8.6","4.8.5","4.8.4","4.8.3","4.8.2","4.8.1","4.8.0-beta.2","4.7.2","4.7.0","4.7.0-rc.1","4.7.0-beta.3","4.7.0-beta.2","4.7.0-beta","4.6.0","4.6.0-beta.3","4.6.0-beta.2","4.6.0-beta","4.5.2","4.5.1","4.5.0","4.4.1","4.4.0","4.3.0","4.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40642.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"}]}