VDB
Sign up
MEDIUM6.1

GHSA-255w-87rh-rg44

Cross-site Scripting via uploaded SVG

Quick fix

GHSA-255w-87rh-rg44 — sulu/sulu: upgrade to the fixed version with the command below.

composer require sulu/sulu:^2.5.21

Details

In Sulu v2.0.0 through v2.6.4 are vulnerable against XSS whereas a low privileged user with an access to the “Media” section can upload an SVG file with a malicious payload. Once uploaded and accessed, the malicious javascript will be executed on the victims’ (other users including admins) browsers.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/sulu/sulu
Introduced in: 2.0.0-RC1Fixed in: 2.5.21
Fixcomposer require sulu/sulu:^2.5.21
Packagist/sulu/sulu
Introduced in: 2.6.0-RC1Fixed in: 2.6.5
Fixcomposer require sulu/sulu:^2.6.5

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:composer/sulu/sulu"]}'