Skip to content

XSS via category name

Low
oblakeerickson published GHSA-xhmc-9jwm-wqph Aug 26, 2021

Package

Discourse (Discourse)

Affected versions

stable <= 2.7.7; beta <= 2.8.0.beta4; tests-passed <= 2.8.0.beta4;

Patched versions

stable >= 2.7.8; beta >= 2.8.0.beta4; tests-passed >= 2.8.0.beta4;

Description

Impact

Category names can be uses for XSS attacks. This vulnerability only affects sites which have modified or disabled Discourse's default Content Security Policy and have allowed for moderators to modify categories.

Patches

This issue is patched in the latest stable, beta and tests-passed versions of Discourse.

Workarounds

Ensure that the Content Security Policy is enabled, and has not been modified in a way which would make it more vulnerable to XSS attacks.

Severity

Low

CVE ID

CVE-2021-39161

Weaknesses

No CWEs