Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-41130

CVE-2026-41130: Craft CMS has a host header injection leading to SSRF via resource-js endpoint

April 14, 2026 (updated April 24, 2026)

The resource-js endpoint in Craft CMS allows unauthenticated requests to proxy remote JavaScript resources. When trustedHosts is not explicitly restricted (default configuration), the application trusts the client-supplied Host header.

This allows an attacker to control the derived baseUrl, which is used in prefix validation inside actionResourceJs(). By supplying a malicious Host header, the attacker can make the server issue arbitrary HTTP requests, leading to Server-Side Request Forgery (SSRF).

References

  • github.com/advisories/GHSA-95wr-3f2v-v2wh
  • github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783
  • github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh
  • nvd.nist.gov/vuln/detail/CVE-2026-41130

Code Behaviors & Features

Detect and mitigate CVE-2026-41130 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0-RC1 before 4.17.9, all versions starting from 5.0.0-RC1 before 5.9.15

Fixed versions

  • 4.17.9
  • 5.9.15

Solution

Upgrade to versions 4.17.9, 5.9.15 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

packagist/craftcms/cms/CVE-2026-41130.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:55 +0000.