6.3medium
Cross-site Scripting in BookStack
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.78% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5vf7-q87h-pg6w
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| BookStackApp BookStack | >= 0.18.0, < 0.29.2, from 0.18.0 before 0.29.2 | CVE List, NVD |
| ssddanbrown/bookstack (Packagist) | from 0.18.0 before 0.29.2 | GitHub Advisory Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
The issue was addressed in BookStack v0.29.2.
After upgrading, The command php artisan bookstack:regenerate-comment-content should be ran to remove any pre-existing dangerous content.
Workarounds
Comments can be disabled in the system settings to prevent them being shown to users. Alternatively, comment creation permissions can be altered as required to only those who are trusted but this will not address existing exploitation of this vulnerability.
References
- BookStack Beta v0.29.2
- JVN#41035278
- BookStack Blog Post
For more information
If you have any questions or comments about this advisory:
- Open an issue in the BookStack GitHub repository.
- Ask on the BookStack Discord chat.
- Follow the BookStack Security Advice to contact someone privately.
NVD (es)
En BookStack versiones posteriores o igual a 0.18.0 y versiones menores a 0.29.2, se presenta una vulnerabilidad de tipo XSS en la creación de comentarios. Un usuario con permiso para crear comentarios podría PUBLICAR HTML directamente en el sistema para ser guardado en un comentario, que luego es ejecutado y desplegado a otros usuarios que visualicen el comentario. Por medio de esta vulnerabilidad, el código JavaScript personalizado podría ser inyectado y, por lo tanto, ejecutarse en otras máquinas de usuario. Esto impacta más a los escenarios en los que los usuarios no confiables se le otorgan permiso para crear comentarios. Esto se ha corregido en 0.29.2.
References
| https://github.com/BookStackApp/BookStack/security/advisories/GHSA-5vf7-q87h-pg6w | third-party-advisory, web | |
| https://bookstackapp.com/blog/beta-release-v0-29-2/ | release-notes, vendor-advisory | |
| https://github.com/BookStackApp/BookStack/releases/tag/v0.29.2 | release-notes, web | |
| http://jvn.jp/en/jp/JVN41035278/index.html | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-11055 | advisory | |
| https://bookstackapp.com/blog/beta-release-v0-29-2 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-11055 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5vf7-q87h-pg6w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-11055 changed 2026-06-17 | Public domain |