Advisory

GHSA-8fm5-gg2f-f66q

Also known as: CVE-2024-39311

Summary

Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-03-28 16:34 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

publify_core

RubyGems · All systems

Affected

  • introduced 0, fixed 10.0.2 (ecosystem)

Fixed versions

10.0.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences