OpenProject has stored XSS regression using attachments and script-src self
Description
OpenProject is an open-source, web-based project management software. Versions 16.3.0 through 16.6.4 are affected by a stored cross-site scripting vulnerability in the Roadmap view. OpenProject’s roadmap view renders the “Related work packages” list for each version. When a version contains work packages from a different project (e.g., a subproject), the helper link_to_work_package prepends package.project.to_s to the link and returns the entire string with .html_safe. Because project names are user-controlled and no escaping happens before calling html_safe, any HTML placed in a subproject name is injected verbatim into the page. The underlying issue is mitigated in versions 16.6.5 and 17.0.0 by setting a X-Content-Type-Options: nosniff header, which was in place until a refactoring move to Rails standard content-security policy, which did not properly apply this header in the new configuration since OpenProject 16.3.0. Those who cannot upgrade their installations should ensure that they add a X-Content-Type-Options: nosniff header in their proxying web application server.
Affected products
1- Range: v16.3.0, v16.3.1, v16.3.2, …
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/opf/openproject/releases/tag/v16.6.5mitrex_refsource_MISC
- github.com/opf/openproject/releases/tag/v17.0.0mitrex_refsource_MISC
- github.com/opf/openproject/security/advisories/GHSA-cvpq-cc56-gwxxmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.