CVE-2018-12104: Airbnb Knowledge Repo XSS In Comments
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43252%
CWE
Published
5/14/2022
Updated
9/27/2024
KEV Status
No
Technology
Python
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 |
---|---|---|---|
knowledge-repo | pip | < 0.9.0 | 0.9.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub patch shows the vulnerability was fixed by adding Flask's escape()
to sanitize data['text']
in the post_comment
route handler. This function processes user-submitted comments and previously lacked input sanitization, making it the clear injection point. The CVE description explicitly implicates the post comments
functionality, and the patch's narrow scope (only modifying this function) confirms this as the primary vulnerability source.