Vulnerabilities in pkg:maven/com.softwaremill.akka-http-session/core_2.13
PACKAGECVE-2020-7780 is a MODERATE (CVSS 8.8) cross-site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Core 2.13 libraries in the Maven ecosystem. The issue involves cross-site request forgery. Remediation is available by upgrading affected packages to version 0.5.11.
pkg:maven/com.softwaremill.akka-http-session/core_2.13
Vulnerability advisories affecting package pkg:maven/com.softwaremill.akka-http-session/core_2.13. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-q42q-523g-3fwv | CVE-2020-7780 | MODERATE | Cross-Site Request Forgery |
CVE-2020-7780 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2020-7780
To remediate this vulnerability, upgrade all affected Core 2.13 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.softwaremill.akka-http-session</groupId>
<artifactId>core_2.13</artifactId>
<version>0.5.11</version>
</dependency>
<dependency>
<groupId>com.softwaremill.akka-http-session</groupId>
<artifactId>core_2.12</artifactId>
<version>0.5.11</version>
</dependency>
<dependency>
<groupId>com.softwaremill.akka-http-session</groupId>
<artifactId>core_2.11</artifactId>
<version>0.5.11</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.softwaremill.akka-http-session
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-7780, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.softwaremill.akka-http-session
Analyze the terminal output to locate any version of Core 2.13 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.11), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.softwaremill.akka-http-session command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Core 2.13, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-7780 Affected Core 2.13 Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.softwaremill.akka-http-session:core_2.13
|
Maven |
< 0.5.11
|
0.5.11
|
|
com.softwaremill.akka-http-session:core_2.12
|
Maven |
< 0.5.11
|
0.5.11
|
|
com.softwaremill.akka-http-session:core_2.11
|
Maven |
< 0.5.11
|
0.5.11
|
References
Frequently Asked Questions
What is CVE-2020-7780?
Which Core 2.13 versions are affected?
What version fixes CVE-2020-7780?
Is core_2.13 affected?
Is core_2.12 affected?
What is the CVSS score of CVE-2020-7780?
What CWE is associated with CVE-2020-7780?
How can I check Maven dependencies for CVE-2020-7780?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q42q-523g-3fwv",
"modified" : "2021-04-13T16:52:23Z",
"published" : "2022-02-09T23:06:40Z",
"aliases" : [ "CVE-2020-7780" ],
"summary" : "Cross-Site Request Forgery",
"details" : "This affects the package com.softwaremill.akka-http-session:core_2.13 before 0.5.11; the package com.softwaremill.akka-http-session:core_2.12 before 0.5.11; the package com.softwaremill.akka-http-session:core_2.11 before 0.5.11. For older versions, endpoints protected by randomTokenCsrfProtection could be bypassed with an empty X-XSRF-TOKEN header and an empty XSRF-TOKEN cookie.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.softwaremill.akka-http-session:core_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.softwaremill.akka-http-session:core_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.softwaremill.akka-http-session:core_2.11"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7780"
}, {
"type" : "WEB",
"url" : "https://github.com/softwaremill/akka-http-session/issues/74"
}, {
"type" : "WEB",
"url" : "https://github.com/softwaremill/akka-http-session/issues/77"
}, {
"type" : "WEB",
"url" : "https://github.com/softwaremill/akka-http-session/commit/57f11663eecb84be03383d164f655b9c5f953b41"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1045352"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046654"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046655"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-13T16:52:23Z",
"nvd_published_at" : "2020-11-27T17:15:00Z"
}
}