{"id":"CVE-2024-47878","aliases":["CVE-2024-47878","GHSA-pw3x-c5vp-mfc3"],"related":[],"kind":"vulnerability","state":"published","title":"Reflected cross-site scripting vulnerability (XSS) in GData extension (authorized.vt)","summary":"OpenRefine is a free, open source tool for working with messy data. Prior to version 3.8.3, the `/extension/gdata/authorized` endpoint includes the `state` GET parameter verbatim in a `<script>` tag in the output, so without escaping. An attacker could lead or redirect a user to a crafted URL containing JavaScript code, which would then cause that code to be executed in the victim's browser as if it was part of OpenRefine. Version 3.8.3 fixes this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenRefine is a free, open source tool for working with messy data. Prior to version 3.8.3, the `/extension/gdata/authorized` endpoint includes the `state` GET parameter verbatim in a `<script>` tag in the output, so without escaping. An attacker could lead or redirect a user to a crafted URL containing JavaScript code, which would then cause that code to be executed in the victim's browser as if it was part of OpenRefine. Version 3.8.3 fixes this issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe `/extension/gdata/authorized` endpoint includes the `state` GET parameter verbatim in a `<script>` tag in the output, so without escaping.\n\nAn attacker could lead or redirect a user to a crafted URL containing JavaScript code, which would then cause that code to be executed in the victim's browser as if it was part of OpenRefine.\n\n### Details\n\nThe `state` GET parameter is read from:\n\n* extensions/gdata/module/MOD-INF/controller.js:105\n\nIt is used (as `$state`) in:\n\n* extensions/gdata/module/authorized.vt:43\n\nThere is no check that the state has the expected format (base64-encoded JSON with values like \"openrefine123...\" and \"cb123...\"), or that the page was indeed opened as part of the authorization flow.\n\n### PoC\n\nNavigate to:\n\n    http://localhost:3333/extension/gdata/authorized?state=%22,alert(1),%22&error=\n\nAn alert box pops up.\n\nThe gdata extension needs to be present. No other configuration is needed; specifically, it is not required to have a client ID or client secret set.\n\n### Impact\n\nExecution of arbitrary JavaScript in the user's browser. The attacker-provided code can do anything the user can do, including deleting projects, retrieving database passwords, or executing arbitrary Jython or Closure expressions, if those extensions are also present.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenRefine es una herramienta gratuita de código abierto para trabajar con datos desordenados. Antes de la versión 3.8.3, el punto de conexión `/extension/gdata/authorized` incluye el parámetro GET `state` textualmente en una etiqueta `","source":"nvd"}],"published":"2024-10-24T17:54:25.000Z","modified":"2026-06-17T07:57:54.280Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 3.8.3","status":"affected"}],"vendor":"OpenRefine","product":"OpenRefine","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.8.3","status":"affected"}],"vendor":"openrefine","product":"openrefine","cpe":"cpe:2.3:a:openrefine:openrefine:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.8.3"}],"ecosystem":"Maven","package":"org.openrefine:extensions","purl":"pkg:maven/org.openrefine/extensions","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.8.3"}],"vendor":"openrefine","product":"openrefine","cpe":"cpe:2.3:a:openrefine:openrefine:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OpenRefine/OpenRefine/security/advisories/GHSA-pw3x-c5vp-mfc3","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenRefine/OpenRefine/commit/10bf0874d67f1018a58b3732332d76b840192fea","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47878","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenRefine/OpenRefine","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-10-28T13:00:08.510Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47878","url":"https://www.cve.org/CVERecord?id=CVE-2024-47878","licence":"CVE Terms of Use","modified":"2024-10-28T13:00:42.860Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pw3x-c5vp-mfc3","url":"https://github.com/advisories/GHSA-pw3x-c5vp-mfc3","licence":"CC-BY-4.0","modified":"2024-10-30T19:23:08.623Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47878","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47878","licence":"Public domain","modified":"2026-06-17T07:57:54.280Z"}],"updatedAt":"2026-11-25T22:58:47.276Z","epss":{"score":0.00462,"percentile":0.41718,"date":"2026-12-01T12:00:22.000Z"}}