# CVE-2026-55791: Craft CMS: Blind SSRF and Arbitrary JavaScript Injection via Host Header Poisoning in actionResourceJs

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-06-19T21:15:19.000Z
- Modified: 2026-10-25T21:10:00.770Z
- Also known as: GHSA-c55v-343g-5xff
- Weaknesses: CWE-79, CWE-346, CWE-644, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Craft CMS is a content management system (CMS). Versions 4.0.0-RC1 and above, prior to 4.18.0 and 5.0.0-RC1, and above, prior to 5.10.0, are vulnerable to Server-Side Request Forgery (SSRF) and Arbitrary JavaScript Injection through the /actions/app/resource-js endpoint. By exploiting the default permissive trustedHosts configuration, an attacker can poison the Host or X-Forwarded-Host header to manipulate the application’s $baseUrl. This bypasses the endpoint’s internal URL validation, forcing the backend Guzzle client to fetch a malicious payload from an attacker-controlled server and reflect it to the client with a Content-Type: application/javascript header. The vulnerability manifests when assetManager.cacheSourcePaths is set to false. This issue has been fixed in versions 4.18.0 and 5.10.0.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, < 5.10.0; >= 4.0.0-RC1, < 4.18.0
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.10; from 4.0.0-RC1 before 4.18

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:N/SA:N`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-c55v-343g-5xff> (web)
- <https://github.com/craftcms/cms/pull/18559> (web)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2026-55791](https://www.cve.org/CVERecord?id=CVE-2026-55791), CVE Terms of Use, modified 2026-07-02
- GitHub Advisory Database: [GHSA-c55v-343g-5xff](https://github.com/advisories/GHSA-c55v-343g-5xff), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-55791](https://nvd.nist.gov/vuln/detail/CVE-2026-55791), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-55791 · Whole record: https://cve.day/CVE-2026-55791.json · Rebuilt by cve.day 2026-11-25T22:59:26.986Z
