{"id":"CVE-2020-26211","published":"2020-11-03T21:00:18Z","modified":"2024-08-04T15:49:07Z","title":"Cross-Site Scripting in BookStack","vendor":"BookStackApp","product":"BookStack","tier":"tail","description":{"text":"In BookStack before version 0.30.4, a user with permissions to edit a page could insert JavaScript code through the use of `javascript:` URIs within a link or form which would run, within the context of the current page, when clicked or submitted. Additionally, a user with permissions to edit a page could insert a particular meta tag which could be used to silently redirect users to a alternative location upon visit of a page. Dangerous content may remain in the database but will be removed before being displayed on a page. If you think this could have been exploited the linked advisory provides a SQL query to test. As a workaround without upgrading, page edit permissions could be limited to only those that are trusted until you can upgrade although this will not address existing exploitation of this vulnerability. The issue is fixed in BookStack version 0.30.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01096,"percentile":0.66371,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.30.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/BookStackApp/BookStack/security/advisories/GHSA-r2cf-8778-3jgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/BookStackApp/BookStack/commit/bbd1384acbe7e52c21f89af69f2dc391c95dbf54","tags":["x_refsource_MISC"]},{"url":"https://www.bookstackapp.com/blog/beta-release-v0-30-4/","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":13.27},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"bookstackapp","affectedVersions":[{"vendor":"BookStackApp","product":"BookStack","versions":["< 0.30.4"]}],"affected":[{"ecosystem":"Packagist","package":"ssddanbrown/bookstack","vulnerableRanges":["<0.30.4"],"patched":["0.30.4"],"from":["GHSA-ch37-ch8w-cfrq"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in BookStack's page content handling, present in versions before 0.30.4, allows malicious markup to be saved into pages. An attacker who holds page-edit permissions can insert javascript: URIs in links or forms, or a crafted meta tag, which execute script or silently redirect visitors within the context of the affected page, and exploitation requires a user to click or submit the malicious element (user interaction) and an account with page-edit rights (low privileges), with the attack reachable over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:57Z"},"euvd":{"id":"EUVD-2022-3579","exploited":false,"provenance":"source"}}