Repository navigation
Conversation
Automated security fix generated by OrbisAI Security
|
Thank you for the suggestion. I am closing this PR because it breaks supported base font size values. The default is the string The proposed XSS path is not demonstrated: the base font size is used through |
|
Thanks for tracing the existing flow. I agree that the current patch is incorrect because 16px/20px are legitimate values, and the number-only validation breaks the settings UI. I withdraw that change. I’ll separately verify whether an attacker-controlled base-font-size value can actually reach an HTML sink. If I can establish a reproducible source → sink path, I’ll open a focused PR with the exact payload and reproduction steps. Otherwise, I’ll consider the original finding a false positive. |
The typography panel accepts user input for base font size settings through the
baseFontSizeInputstate variable without strict input validation. This input is stored in the WordPress database via thesaveSettingsfunction and later rendered in the admin interface. While the value is primarily used in CSS contexts, the presence ofdangerouslySetInnerHTMLusage in the same file for notices indicates potential XSS vectors if user-controlled data reaches these render paths without proper sanitization. This is defence-in-depth atApp/Controller/Manager/src/js/panels/typography.js:166rather than a vulnerability I can show is exploitable here — it makes the failure mode explicit and bounded. Close it freely if the pattern is intentional.Reference: CWE-79
What changed
App/Controller/Manager/src/js/panels/typography.jsVerification
No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.
Automated security fix by OrbisAI Security