Skip to main content

CVE-2024-39311 — Vulnerability in publify_core — CVE Details

LOW

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

Published March 28, 2025Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.43%). Schedule for your next planned update.

Does your project use an affected publify_core version?

Paste your Gemfile.lock to check it for CVE-2024-39311 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

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().

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

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

Impact

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

Advisory Timeline

  • First published March 28, 2025 (608 days ago).
  • Last revised September 10, 2026 — 530 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update publify_core to 10.0.2 or later
gem install publify_core -v 10.0.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
publify_core RubyGems · Affected: 10.0.0, 10.0.1, 9.0.0, 9.0.0.pre1 (+18 more)10.0.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 4.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
A
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2024-39311?
Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction. This vulnerability has been assigned a severity rating of LOW (CVSS score: 4.5/10).
How do I check if my project is affected by CVE-2024-39311?
CVE-2024-39311 affects publify_core. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39311 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
4.5

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.43%
EPSS percentile: 28.9

This is a below-median EPSS score — only 28.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-8fm5-gg2f-f66q

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock