MEDIUM
GHSA-785g-282q-pwvx
Rack CORS Middleware has Insecure File Permissions
Quick fix
GHSA-785g-282q-pwvx — rack-cors: upgrade to the fixed version with the command below.
bundle update rack-corsDetails
rack-cors (aka Rack CORS Middleware) 2.0.1 has 0666 permissions for the .rb files.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-27456[ADVISORY]
- https://github.com/cyu/rack-cors/issues/274[WEB]
- https://github.com/advisories/GHSA-785g-282q-pwvx[ADVISORY]
- https://github.com/cyu/rack-cors[PACKAGE]
- https://github.com/cyu/rack-cors/blob/878063987bd1ca956282dda95697fd821bf24d2e/CHANGELOG.md#changed[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-cors/CVE-2024-27456.yml[WEB]