drupal/canvas is vulnerable to Unrestricted Upload of File with Dangerous Type
42
CVE Score
Medium
Unrestricted Upload of File with Dangerous Type
The Canvas module allows image uploads via a custom API but only validates file extensions, not MIME types. A malicious user may upload non-image files disguised with image extensions. Depending on web server configuration, those files may be served with their actual MIME type rather than an image type, which could lead to cross-site scripting (XSS) or other unexpected behavior.
Upgrade the drupal/canvas library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 1.4.1
Fixed in 1.4.21.5.0 - 1.5.1
Fixed in 1.5.21.6.0 - 1.6.0
Fixed in 1.6.11.7.0 - 1.7.0
Fixed in 1.7.1drupal/canvas is vulnerable to Unrestricted Upload of File with Dangerous Type in versions 0.0.1 - 1.4.1, 1.5.0 - 1.5.1, 1.6.0 - 1.6.0 and 1.7.0 - 1.7.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.