Vulnerability DatabaseGHSA-3685-v2g8-q27v

GHSA-3685-v2g8-q27v: 
PHP vulnerability analysis and mitigation

With the config callbacks.email_content.protect_email set to true, the [email] tag renders a <script> block (Html::mail_to_safe()). The link text is written unescaped into a single-quoted JavaScript string. A text containing a quote ends the string and runs arbitrary JavaScript in the page of every viewer.

Proof of concept

[email=a@b.de]x');alert(1);//[/email]

The rendered output contains document.write('<a href="...">x');alert(1);//</a>'); inside a script element.

Impact

Stored cross-site scripting for applications that render user-supplied BBCode with protect_email enabled (default is false).

Mitigation

Upgrade to 1.8.1, or leave protect_email disabled. The new league/commonmark based engine (experimental) is not affected.


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-h8fv-vm7c-r6fhCRITICALN/A
  • PHP logoPHP
  • simplesamlphp/saml2
NoNoNov 24, 2026
GHSA-5vjv-wq72-r667MEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoYesNov 24, 2026
GHSA-3685-v2g8-q27vMEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoYesNov 24, 2026
GHSA-26cq-29p9-57xjMEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoYesNov 24, 2026
GHSA-pm4m-j3qg-fqqqMEDIUMN/A
  • PHP logoPHP
  • youthweb/bbcode-parser
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management