VDB
Sign up
HIGH7.4

GHSA-68q3-7wjp-7q3j

The filename of uploaded files vulnerable to stored XSS

Quick fix

GHSA-68q3-7wjp-7q3j — bolt/bolt: upgrade to the fixed version with the command below.

composer require bolt/bolt:^3.7.1

Details

### Impact

The filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it.

Additionally, the measures to prevent renaming the file to disallowed filename extensions could be circumvented.

### Patches

This is fixed in Bolt 3.7.1.

### References

Related issue: https://github.com/bolt/bolt/pull/7853

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/bolt/bolt
Introduced in: 0Fixed in: 3.7.1
Fixcomposer require bolt/bolt:^3.7.1

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/bolt/bolt"]}'