CVE-2021-28833: qiita-markdown Cross-site Scripting vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47285%
CWE
Published
8/2/2021
Updated
3/31/2023
KEV Status
No
Technology
Ruby
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 |
---|---|---|---|
qiita-markdown | rubygems | < 0.34.0 | 0.34.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key points: 1) The Gist embed module explicitly allowed gist.github.com as a trusted host via SCRIPT_HOST constant. 2) This host was included in FilterScript's HOST_WHITE_LIST, disabling security sanitization for <script> tags from this domain. Attackers could craft malicious gist links that would execute arbitrary scripts due to this trust relationship. The fix removed both the Gist module reference and its whitelist entry, confirming these were the vulnerable components.