漏洞描述
Craft CMS 4.0.0-RC1 to 4.17.8 and 5.0.0-RC1 to 5.9.14 contain an unauthenticated server-side request forgery in the app/resource-js action. The action only checks that the url parameter starts with the asset manager base URL. When the @web alias is not set, this base URL is built from the request host, and the default trustedHosts value lets the X-Forwarded-Host header set it, so the server fetches a URL on any host the attacker picks.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh↗github.comhttps://github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783↗github.comhttps://github.com/craftcms/cms/releases/tag/5.9.15↗github.comhttps://github.com/craftcms/cms/releases/tag/4.17.9↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-41130↗