CVE-2017-12882 Spring Batch Admin vulnerable to Stored Cross-site scripting (XSS) in the file upload functionality
Authenticated attackers can inject arbitrary JavaScript via file uploads in Spring Batch Admin, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-12882?
CVE-2017-12882 is a medium-severity cross-site scripting vulnerability in n/a, published on 18 Aug 2017. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Stored Cross-site scripting (XSS) vulnerability in Spring Batch Admin before 1.3.0 allows remote authenticated users to inject arbitrary JavaScript or HTML via the file upload functionality.
Weakness: CWE-79
Which versions are affected by CVE-2017-12882?
2 open source packages ship an affected version, including org.springframework.batch:spring-batch-admin-manager. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.batch:spring-batch-admin-manager Maven | All versions | 1.3.0.RELEASE |
org.springframework.batch:spring-batch-admin-manager Maven | All versions | 1.3.0.RELEASE |
Products include Spring Batch Admin Project Spring Batch Admin.
How do I fix CVE-2017-12882?
Upgrade org.springframework.batch:spring-batch-admin-manager to 1.3.0.RELEASE or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-12882 being exploited?
There is no known exploitation of CVE-2017-12882 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-49mj-77q5-qw5g.