{"id":"DRUPAL-CONTRIB-2026-066","details":"The Canvas module allow you to upload image files via a custom API.\n\nThe validation rules check the file extension of the uploaded file but not the file MIME type. This may allow a malicious user to upload a file that is not an image.\n\nCertain web-server configurations may serve the uploaded file with its actual MIME type rather than an image type. This may lead to cross-site scripting (XSS) or other unexpected behavior.","aliases":["CVE-2026-58588"],"modified":"2026-09-10T03:45:42.448869829Z","published":"2026-07-01T17:21:09Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-066"}],"affected":[{"package":{"name":"drupal/canvas","ecosystem":"Packagist:https://packages.drupal.org/8","purl":"pkg:composer/drupal/canvas?repository_url=https:%2F%2Fpackages.drupal.org%2F8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.2"}],"database_specific":{"constraint":"\u003c1.4.2"}},{"type":"ECOSYSTEM","events":[{"introduced":"1.5.0"},{"fixed":"1.5.2"}],"database_specific":{"constraint":"\u003e=1.5.0 \u003c1.5.2"}},{"type":"ECOSYSTEM","events":[{"introduced":"1.6.0"},{"fixed":"1.6.1"}],"database_specific":{"constraint":"\u003e=1.6.0 \u003c1.6.1"}},{"type":"ECOSYSTEM","events":[{"introduced":"1.7.0"},{"fixed":"1.7.1"}],"database_specific":{"constraint":"\u003e=1.7.0 \u003c1.7.1"}}],"database_specific":{"affected_versions":"\u003c1.4.2 || \u003e=1.5.0 \u003c1.5.2 || \u003e=1.6.0 \u003c1.6.1 || \u003e=1.7.0 \u003c1.7.1","source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/canvas/DRUPAL-CONTRIB-2026-066.json"}}],"schema_version":"1.9.0","credits":[{"name":"Christian López Espínola (penyaskito)","contact":["https://www.drupal.org/u/penyaskito"]}]}