CVE-2024-39311: Publify core Cross-Site Scripting Vulnerability
LOWCVE-2024-39311 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Publify core libraries in the RubyGems ecosystem. The issue involves publify vulnerable to cross-site scripting (xss) via redirects requiring user interaction. Remediation is available by upgrading affected packages to version 10.0.2.
CVE-2024-39311 at a Glance
How to Fix CVE-2024-39311
To remediate this vulnerability, upgrade all affected Publify core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade publify_core to 10.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for publify_core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-39311, inspect your project dependencies for Publify core:
inspect dependencies for publify_core
Analyze the terminal output to locate any version of Publify core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.0.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Publify core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-39311 Affected Publify core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
publify_core
|
RubyGems |
< 10.0.2
|
10.0.2
|
References
Frequently Asked Questions
What is CVE-2024-39311?
Which Publify core versions are affected?
What version fixes CVE-2024-39311?
Is publify_core affected?
What CWE is associated with CVE-2024-39311?
How can I check RubyGems dependencies for CVE-2024-39311?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8fm5-gg2f-f66q",
"modified" : "2025-03-28T16:34:33Z",
"published" : "2025-03-28T16:34:33Z",
"aliases" : [ "CVE-2024-39311" ],
"summary" : "Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction",
"details" : "### Summary\nA publisher on a `publify` application is able to perform a cross-site scripting attack on an administrator using the redirect functionality.\n\n### Details\nA 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.\n\nWe 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. \n\nAn 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.\n\n### PoC\nA publisher can create a new redirect as shown below. The payload used is `javascript:alert()`.\n\n\nAn administrator will now see this redirect in their overview of the page.\n\n\nIf they click the link on the right, it triggers the XSS.\n\n\n### Impact\nA publisher may attempt to use this vulnerability to escalate their privileges and become an administrator.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "publify_core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/publify/publify/security/advisories/GHSA-8fm5-gg2f-f66q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39311"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/publify/publify"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-28T16:34:33Z",
"nvd_published_at" : "2025-03-28T15:15:44Z"
}
}