VDB
Sign up
MEDIUM5.4

GHSA-xjrf-8x4f-43h4

Improper Neutralization of Input During Web Page Generation in Spring Framework

Quick fix

GHSA-xjrf-8x4f-43h4 — org.springframework:spring-web: upgrade to the fixed version with the command below.

# pom.xml: bump <version>3.2.2.RELEASE</version> for org.springframework:spring-web

Details

The JavaScriptUtils.javaScriptEscape method in web/util/JavaScriptUtils.java in Spring MVC in Spring Framework before 3.2.2 does not properly escape certain characters, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a (1) line separator or (2) paragraph separator Unicode character or (3) left or (4) right angle bracket.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework:spring-web
Introduced in: 0Fixed in: 3.2.2.RELEASE
Fix# pom.xml: bump <version>3.2.2.RELEASE</version> for org.springframework:spring-web

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.springframework/spring-web"]}'