GHSA-8fm5-gg2f-f66q

Suggest an improvement
Source
https://github.com/advisories/GHSA-8fm5-gg2f-f66q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-8fm5-gg2f-f66q/GHSA-8fm5-gg2f-f66q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8fm5-gg2f-f66q
Aliases
  • CVE-2024-39311
Published
2025-03-28T16:34:33Z
Modified
2025-03-28T16:51:39.592128Z
Severity
  • 1.8 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-03-28T15:15:44Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-28T16:34:33Z"
}
References

Affected packages

RubyGems / publify_core

Package

Name
publify_core
Purl
pkg:gem/publify_core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
10.0.2

Affected versions

9.*

9.0.0.pre1
9.0.0.pre2
9.0.0.pre3
9.0.0.pre4
9.0.0.pre5
9.0.0.pre6
9.0.0
9.0.1
9.1.0
9.2.0
9.2.1
9.2.2
9.2.3
9.2.4
9.2.5
9.2.6
9.2.7
9.2.8
9.2.9
9.2.10

10.*

10.0.0
10.0.1