CVE-2018-7198:
October CMS - RainLab Blog Plugin XSS
6.1
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/13/2022
Updated
10/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
rainlab/blog-plugin | composer | < 1.4.1 | 1.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key points: 1) The BlogMarkdown widget explicitly disabled HTML cleaning via shouldCleanHtml(), passing raw input to the model. 2) The Post::formatHtml method lacked proper HTML sanitization (via Html::clean()) for non-privileged users before the patch. Together, these allowed unauthenticated XSS through blog post content. The patch added Html::clean() conditional checks in Post.php and formalized the unsafe Markdown permission, confirming these were the missing safeguards.