{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-35943","published":"2022-08-12T21:15:07.803000Z","last_modified":"2026-06-17T04:52:34.443000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-352"],"cpes":[{"criteria":"cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*","part":"a","vendor":"codeigniter","product":"codeigniter","version_end_excluding":"4.2.3"},{"criteria":"cpe:2.3:a:codeigniter:shield:1.0.0:beta:*:*:*:*:*:*","part":"a","vendor":"codeigniter","product":"shield","version":"1.0.0"}],"cpes_truncated":false,"vendors":["codeigniter"],"products":["codeigniter/codeigniter","codeigniter/shield"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00617,"percentile":0.43921,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5hm8-vh6r-2cjq","ecosystem":"Packagist","name":"codeigniter4/shield","purl":"pkg:composer/codeigniter4/shield","ranges":[{"introduced":"1.0.0-beta","fixed":"1.0.0-beta.2"}],"versions":["1.0.0-beta","v1.0.0-beta"],"versions_truncated":false}],"severity":"high","priority_score":68,"links":{"html_es":"/es/cve/CVE-2022-35943/","html_en":"/en/cve/CVE-2022-35943/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-35943","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-35943"},"untrusted":{"vendor_name":"Codeigniter","product_name":"Codeigniter","desc_en":"Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow [SameSite Attackers](https://canitakeyoursubdomain.name/) to bypass the [CodeIgniter4 CSRF protection](https://codeigniter4.github.io/userguide/libraries/security.html) mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., `https://a.example.com/`) of the target site (e.g., `http://example.com/`). Upgrade to **CodeIgniter v4.2.3 or later** and **Shield v1.0.0-beta.2 or later**. As a workaround: set `Config\\Security::$csrfProtection` to `'session,'`remove old session data right after login (immediately after ID and password match) and regenerate CSRF token right after login (immediately after ID and password match)","affected":[{"untrusted_vendor":"codeigniter4","untrusted_product":"shield","versions":[]}],"references":[{"url":"https://codeigniter4.github.io/userguide/libraries/security.htm","tags":["Broken Link"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite","tags":["Third Party Advisory"]},{"url":"https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq","tags":["Exploit","Mitigation","Third Party Advisory"]},{"url":"https://jub0bs.com/posts/2021-01-29-great-samesite-confusion","tags":["Third Party Advisory"]}]}}