CVE-2024-39311 Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction
A publisher can execute XSS on an administrator via malicious redirects, potentially escalating privileges to admin. Upgrade Publify to fix.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-39311?
CVE-2024-39311 is a low-severity cross-site scripting vulnerability in publify, published on 28 Mar 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
Publify is a self hosted Web publishing platform on Rails. Prior to version 10.0.1 of Publify, corresponding to versions prior to 10.0.2 of the `publify_core` rubygem, publisher on a `publify` application is able to perform a cross-site scripting (XSS) attack on an administrator using the redirect functionality. The exploitation of this XSS vulnerability requires the administrator to click a malicious link. An attack could attempt to hide their payload by using HTML, or other encodings, as to not make it obvious to an administrator that this is a malicious link. A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator. Version 10.0.1 of Publify and version 10.0.2 of the `publify_core` rubygem fix the issue.
Weakness: CWE-79
Which versions are affected by CVE-2024-39311?
2 open source packages ship an affected version, including publify_core. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
publify_core RubyGems | All versions | 10.0.2 |
publify_core RubyGems | All versions | 10.0.2 |
Products include Publify Publify, Publify Publify Core.
How do I fix CVE-2024-39311?
Upgrade publify_core to 10.0.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-39311 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39311 exists.
Other vulnerabilities in publify
Sources
Also known as GHSA-8fm5-gg2f-f66q.