CVE-2021-41750: Cross-site Scripting in SEOmatic plugin
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63703%
CWE
Published
6/13/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nystudio107/craft-seomatic | composer | < 3.4.11 | 3.4.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from inadequate file extension validation in the actionSeoFileLink
controller method. The original code (pre-patch) only checked if the extension was empty or not in allowedExtensions
, but didn't explicitly block SVG
files. Since SVG
s can contain embedded JavaScript
, this allowed XSS
payloads. The patch explicitly adds 'svg' to the blocked extensions, confirming this was the attack vector. The function's role in handling user-supplied fileName
parameters and setting content-types makes it the clear entry point for the vulnerability.