Miggo Logo

GHSA-95m2-chm4-mq7m: PHP-Textile has persistent XSS vulnerability in image link handling

7.3

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
1/7/2025
Updated
1/7/2025
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
netcarver/textilecomposer<= 4.1.24.1.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows a critical modification in Parser.php's fImage method where href validation was added via isValidUrl. Prior to this fix, image links in restricted mode didn't undergo protocol validation, making this function the entry point for unsafe href processing. The vulnerability documentation explicitly states image links were affected while text links were already properly handled, further corroborating fImage as the vulnerable function.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### **t*ils P*rsist*nt XSS vuln*r**ility in im*** link **n*lin* o* P*P-T*xtil* v*rsions *.*.* *n* ol**r, w**n runnin* t** p*rs*r in r*stri*t** mo**. In r*stri*t** mo** it is *xp**t** t**t t** input woul* ** s*nitiz**, *llowin* us*r-input (su** *s us

Reasoning

T** *ommit *i** s*ows * *riti**l mo*i*i**tion in P*rs*r.p*p's *Im*** m*t*o* w**r* *r** v*li**tion w*s ***** vi* isV*li*Url. Prior to t*is *ix, im*** links in r*stri*t** mo** *i*n't un**r*o proto*ol v*li**tion, m*kin* t*is *un*tion t** *ntry point *or
PHP-Textile Image Link XSS | Miggo