CVE-2024-39311: Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction

Published Mar 28, 2025
·
Updated

Summary A publisher on a publify application is able to perform a cross-site scripting attack on an administrator using the redirect functionality.

Details A publisher on a publify application is able to perform a cross-site scripting attack on an administrator using the redirect functionality. The exploitation of this XSS vulnerability requires the administrator to click a malicious link.

We can create a redirect to a javascript:alert() URL. Whilst the redirect itself doesn't work, on the administrative panel, an a tag is created with the payload as the URI. Upon clicking this link, the XSS is triggered.

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.

PoC A publisher can create a new redirect as shown below. The payload used is javascript:alert(). !image

An administrator will now see this redirect in their overview of the page. !image

If they click the link on the right, it triggers the XSS. !image

Impact A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator.

Other sources

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 publifycore 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 publifycore rubygem fix the issue.

MITRE

Affected Software

5 affected componentsFixes available
Publify Publify<10.0.1
Rubygems publify_core<10.0.2
rubygems/publify_core<10.0.2
10.0.2
Publify Publify<10.0.1
Publify Publify Core Ruby<10.0.2

Event History

Mar 28, 2025
CVE Published
via MITRE·02:38 PM
Data Sourced
via MITRE·02:38 PM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·04:34 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-39311?

CVE-2024-39311 has a severity rating of medium due to the potential for cross-site scripting (XSS) attacks.

2

How do I fix CVE-2024-39311?

To fix CVE-2024-39311, upgrade to Publify version 10.0.1 or later, or to the publify_core gem version 10.0.2 or later.

3

Who is affected by CVE-2024-39311?

CVE-2024-39311 affects all users of Publify versions prior to 10.0.1 and the publify_core gem versions prior to 10.0.2.

4

What type of vulnerability is CVE-2024-39311?

CVE-2024-39311 is categorized as a cross-site scripting (XSS) vulnerability.

5

Can CVE-2024-39311 impact administrators?

Yes, CVE-2024-39311 can allow attackers to perform XSS attacks specifically against administrators of a Publify application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203