{"id":"CVE-2024-39311","aliases":["CVE-2024-39311","GHSA-8fm5-gg2f-f66q"],"related":[],"kind":"vulnerability","state":"published","title":"Publify Vulnerable To Cross-Site Scripting (XSS) Via Redirects Requiring User Interaction","summary":"Publify is a self hosted Web publishing platform on Rails. Prior to version 10.0.1 of Publify, corresponding to versions prior to 10.0.2 of the `publify_core` rubygem, publisher on a `publify` application is able to perform a cross-site scripting (XSS) attack on an administrator using the redirect functionality. The exploitation of this XSS vulnerability requires the administrator to click a malicious link. 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. A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator. Version 10.0.1 of Publify and version 10.0.2 of the `publify_core` rubygem fix the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Publify is a self hosted Web publishing platform on Rails. Prior to version 10.0.1 of Publify, corresponding to versions prior to 10.0.2 of the `publify_core` rubygem, publisher on a `publify` application is able to perform a cross-site scripting (XSS) attack on an administrator using the redirect functionality. The exploitation of this XSS vulnerability requires the administrator to click a malicious link. 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. A publisher may attempt to use this vulnerability to escalate their privileges and become an administrator. Version 10.0.1 of Publify and version 10.0.2 of the `publify_core` rubygem fix the issue.","source":"cvelist"},{"lang":"en","text":"### 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![image](https://user-images.githubusercontent.com/44903767/295206083-3cf432c6-1f58-49a2-b09c-777e9707e0ff.png)\n\nAn administrator will now see this redirect in their overview of the page.\n![image](https://user-images.githubusercontent.com/44903767/295206204-3d4dc59a-8f82-42f3-98b2-a1809790351f.png)\n\nIf they click the link on the right, it triggers the XSS.\n![image](https://user-images.githubusercontent.com/44903767/295206292-3fea85f5-6918-4eff-8206-4a275a6e79e4.png)\n\n### Impact\nA publisher may attempt to use this vulnerability to escalate their privileges and become an administrator.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Publify es una plataforma de publicación web autoalojada en Rails. Antes de la versión 10.0.1 de Publify, correspondiente a las versiones anteriores a la 10.0.2 de la gema `publify_core`, un editor en una aplicación `publify` podía realizar un ataque de Cross Site Scripting (XSS) contra un administrador mediante la función de redireccionamiento. Para explotar esta vulnerabilidad XSS, el administrador debe hacer clic en un enlace malicioso. Un ataque podría intentar ocultar su payload mediante HTML u otras codificaciones para que el administrador no note que se trata de un enlace malicioso. Un editor podría intentar aprovechar esta vulnerabilidad para aumentar sus privilegios y convertirse en administrador. Las versiones 10.0.1 de Publify y 10.0.2 de la gema `publify_core` solucionan el problema.","source":"nvd"}],"published":"2025-03-28T14:38:03.816Z","modified":"2026-09-10T03:50:23.115Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":1.8,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":1.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 10.0.1","status":"affected"}],"vendor":"publify","product":"publify","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"10.0.2"}],"ecosystem":"RubyGems","package":"publify_core","purl":"pkg:gem/publify_core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"10.0.1"}],"vendor":"publify","product":"publify","cpe":"cpe:2.3:a:publify:publify:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.0.2"}],"vendor":"publify","product":"publify_core","cpe":"cpe:2.3:a:publify:publify_core:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/publify/publify/security/advisories/GHSA-8fm5-gg2f-f66q","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39311","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/publify/publify","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-03-28T15:37:13.196Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39311","url":"https://www.cve.org/CVERecord?id=CVE-2024-39311","licence":"CVE Terms of Use","modified":"2025-03-28T15:37:35.064Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8fm5-gg2f-f66q","url":"https://github.com/advisories/GHSA-8fm5-gg2f-f66q","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:23.115Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39311","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39311","licence":"Public domain","modified":"2026-06-17T07:41:41.493Z"}],"updatedAt":"2026-11-25T22:58:52.454Z","epss":{"score":0.00271,"percentile":0.20617,"date":"2026-12-01T12:00:22.000Z"}}