{"id":"CVE-2020-28452","published":"2021-01-20T17:46:54Z","modified":"2024-09-16T23:26:11Z","title":"Cross-site Request Forgery (CSRF)","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects the package com.softwaremill.akka-http-session:core_2.12 from 0 and before 0.6.1; all versions of package com.softwaremill.akka-http-session:core_2.11; the package com.softwaremill.akka-http-session:core_2.13 from 0 and before 0.6.1. CSRF protection can be bypassed by forging a request that contains the same value for both the X-XSRF-TOKEN header and the XSRF-TOKEN cookie value, as the check in randomTokenCsrfProtection only checks that the two values are equal and non-empty.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0053,"percentile":0.45754,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/softwaremill/akka-http-session/issues/77","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046674","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046675","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1058933","tags":["x_refsource_MISC"]},{"url":"https://github.com/softwaremill/akka-http-session/pull/79","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":9.15},{"name":"CVSS severity","points":4.41}]},"affectedVersions":[{"vendor":"n/a","product":"com.softwaremill.akka-http-session:core_2.12","versions":["< unspecified",">= unspecified, < 0.6.1"]},{"vendor":"n/a","product":"com.softwaremill.akka-http-session:core_2.11","versions":["< unspecified"]},{"vendor":"n/a","product":"com.softwaremill.akka-http-session:core_2.13","versions":["< unspecified",">= unspecified, < 0.6.1"]}],"affected":[{"ecosystem":"Maven","package":"com.softwaremill.akka-http-session:core_2.12","vulnerableRanges":[">=0.3.0, <0.6.1"],"patched":["0.6.1"],"from":["GHSA-4jf5-jggp-g56j"],"provenance":"source"}],"summary":{"text":"The flaw is a CSRF protection bypass in the randomTokenCsrfProtection check of the com.softwaremill.akka-http-session \"core\" package, affecting the Scala 2.12 and 2.13 builds at versions before 0.6.1 and all versions of the 2.11 build. An attacker can forge a cross-site request by supplying the same value in the X-XSRF-TOKEN header and the XSRF-TOKEN cookie, because the check only confirms that these two values are equal and non-empty; the attack requires network access and a victim user to interact with a crafted page, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:47Z"},"euvd":{"id":"EUVD-2022-0445","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-com-softwaremill-akka-http-session-core--cve-2020-7780","parents":[{"from":"CVE-2020-7780","to":"CVE-2020-28452","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/src/main/scala/com/softwaremill/session/CsrfDirectives.scala"],"commits":["https://github.com/softwaremill/akka-http-session/commit/8725dccfc3143ac52304a51f4bbfda119d5ba3a1","https://github.com/softwaremill/akka-http-session/commit/57f11663eecb84be03383d164f655b9c5f953b41"],"basis":"shared function","functions":["CsrfDirectives"]},{"kind":"similar","provenance":"machine","score":0.93,"basis":"same package + description similarity"}]}]}}