GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

DRUPAL-CONTRIB-2026-066unknown

DRUPAL-CONTRIB-2026-066

Check your stack

The advisory, in context

The Canvas module allow you to upload image files via a custom API.

The 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.

Certain 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.

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

drupal/canvas Packagist:https://packages.drupal.org/8
Ecosystem versions

Earlier releases before 1.4.2

Fixed in 1.4.2

Ecosystem versions

From 1.5.0 before 1.5.2

Fixed in 1.5.2

Ecosystem versions

From 1.6.0 before 1.6.1

Fixed in 1.6.1

Ecosystem versions

From 1.7.0 before 1.7.1

Fixed in 1.7.1

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "0"
        },
        {
          "fixed": "1.4.2"
        }
      ],
      "type": "ECOSYSTEM",
      "database_specific": {
        "constraint": "<1.4.2"
      }
    },
    {
      "events": [
        {
          "introduced": "1.5.0"
        },
        {
          "fixed": "1.5.2"
        }
      ],
      "type": "ECOSYSTEM",
      "database_specific": {
        "constraint": ">=1.5.0 <1.5.2"
      }
    },
    {
      "events": [
        {
          "introduced": "1.6.0"
        },
        {
          "fixed": "1.6.1"
        }
      ],
      "type": "ECOSYSTEM",
      "database_specific": {
        "constraint": ">=1.6.0 <1.6.1"
      }
    },
    {
      "events": [
        {
          "introduced": "1.7.0"
        },
        {
          "fixed": "1.7.1"
        }
      ],
      "type": "ECOSYSTEM",
      "database_specific": {
        "constraint": ">=1.7.0 <1.7.1"
      }
    }
  ],
  "versions": []
}

References