1.8
CWE
79
Advisory Published
Advisory Published
Updated

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

First published: Fri 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](https://user-images.githubusercontent.com/44903767/295206083-3cf432c6-1f58-49a2-b09c-777e9707e0ff.png) An administrator will now see this redirect in their overview of the page. ![image](https://user-images.githubusercontent.com/44903767/295206204-3d4dc59a-8f82-42f3-98b2-a1809790351f.png) If they click the link on the right, it triggers the XSS. ![image](https://user-images.githubusercontent.com/44903767/295206292-3fea85f5-6918-4eff-8206-4a275a6e79e4.png) ### Impact A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Publify<10.0.1
publify_core<10.0.2
rubygems/publify_core<10.0.2
10.0.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • What type of vulnerability is CVE-2024-39311?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203