{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-40642 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-40642 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-40642 is a medium-severity vulnerability in n/a, published on 29 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-40642 and fix it if it is affected.\n\nWhat it is: CVE-2021-40642 is a medium-severity vulnerability in n/a, published on 29 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-40642 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-40642/ (Markdown: https://insights.sbomify.com/CVE-2021-40642/index.md)","id":"CVE-2021-40642","markdown":"https://insights.sbomify.com/CVE-2021-40642/index.md","name":"CVE-2021-40642","record":{"aliases":["GHSA-w43v-qr8x-xq75"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Textpattern CMS","requires_auth":"none","summary":"Attackers can steal session cookies transmitted over HTTP due to missing Secure flag, potentially leading to account takeover.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"textpattern","vendor":"textpattern"}],"cvss":{"score":4.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-311","name":"Missing Encryption of Sensitive Data"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Information disclosure in n/a","id":"CVE-2021-40642","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Command injection in n/a","id":"CVE-2021-40643"},"packages":[],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2021-40639"},"products":["n/a"],"published":"2022-06-29","related":[{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2020-19510","kev_date_added":null,"published":"2021-06-21"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2018-7474","kev_date_added":null,"published":"2018-03-14"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2023-50038","kev_date_added":null,"published":"2023-12-28"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2023-24269","kev_date_added":null,"published":"2023-04-28"},{"cvss_score":8.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2020-29458","kev_date_added":null,"published":"2020-12-02"},{"cvss_score":8.3,"headline":"Cross-site scripting in n/a","id":"CVE-2021-44082","kev_date_added":null,"published":"2022-03-29"},{"cvss_score":7.5,"headline":"XML external entity in n/a","id":"CVE-2018-1000090","kev_date_added":null,"published":"2018-03-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can steal session cookies transmitted over HTTP due to missing Secure flag, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2021-40642/"}