In BookStack greater than or equal to 0.18.0 and less than 0.29.2, there is an XSS vulnerability in comment creation. A user with permission to create comments could POST HTML directly to the system to be saved in a comment, which would then be executed/displayed to others users viewing the comment. Through this vulnerability custom JavaScript code could be injected and therefore ran on other user machines. This most impacts scenarios where not-trusted users are given permission to create comments. This has been fixed in 0.29.2.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:bookstackapp:bookstack:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.18.0"
},
{
"fixed": "0.29.2"
}
],
"source": "CPE_RANGE"
},
{
"original_tag": "v0.29.2",
"range": [
{
"fixed": "04ecc128a237c22b5ff724f2328f0b6922ff3428"
}
],
"source": "REFERENCES_TAG"
}
]
}