Discourse anonymous cache poisoning via XHR requests
CVE-2024-47773 affects Discourse, an open source community discussion platform. An attacker can send multiple XMLHttpRequest (XHR) requests until the anonymous cache is poisoned with a response that lacks preloaded data. The issue impacts responses served from Discourse's anonymous caching mechanism, causing cached content for unauthenticated users to be populated with an incomplete response variant. Based on the provided information, the flaw is a cache poisoning issue affecting anonymous visitors rather than authenticated sessions.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to poison Discourse's anonymous cache so that unauthenticated visitors receive a cached response without the expected preloaded data. This can degrade site functionality and integrity for anonymous users by causing incomplete or malformed page responses to be served from cache. The provided information does not indicate code execution, privilege escalation, or direct data disclosure.
If you can’t patch tonight, do this now.
If upgrading is not immediately possible, disable the anonymous cache by setting the DISCOURSE_DISABLE_ANON_CACHE environment variable to a non-empty value. This removes the vulnerable caching behavior affecting anonymous visitors.
Patch, then assume compromise.
Upgrade Discourse to the latest patched version that fixes CVE-2024-47773. The vendor states that the issue has been patched in the latest release.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.