{"id":"CVE-2024-47882","aliases":["CVE-2024-47882","GHSA-j8hp-f2mj-586g"],"related":[],"kind":"vulnerability","state":"published","title":"OpenRefine's error page lacks escaping, leading to potential Cross-site Scripting on import of malicious project","summary":"OpenRefine is a free, open source tool for working with messy data. Prior to version 3.8.3, the built-in \"Something went wrong!\" error page includes the exception message and exception traceback without escaping HTML tags, enabling injection into the page if an attacker can reliably produce an error with an attacker-influenced message. It appears that the only way to reach this code in OpenRefine itself is for an attacker to somehow convince a victim to import a malicious file, which may be difficult.  However, out-of-tree extensions may add their own calls to `respondWithErrorPage`. Version 3.8.3 has a fix for 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 built-in \"Something went wrong!\" error page includes the exception message and exception traceback without escaping HTML tags, enabling injection into the page if an attacker can reliably produce an error with an attacker-influenced message. It appears that the only way to reach this code in OpenRefine itself is for an attacker to somehow convince a victim to import a malicious file, which may be difficult.  However, out-of-tree extensions may add their own calls to `respondWithErrorPage`. Version 3.8.3 has a fix for this issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe built-in \"Something went wrong!\" error page includes the exception message and exception traceback without escaping HTML tags, enabling injection into the page if an attacker can reliably produce an error with an attacker-influenced message.\n\nIt appears that the only way to reach this code in OpenRefine itself is for an attacker to somehow convince a victim to import a malicious file, as in GHSA-m88m-crr9-jvqq, which may be difficult.  However, out-of-tree extensions may add their own calls to `respondWithErrorPage`.\n\n### Details\n\nThe `Command.respondWithErrorPage` (through `HttpUtilities.respondWithErrorPage`) function renders the Velocity template `error.vt`, which contains the `$message` and `$stack` variables, which are included in the response as-is:\n\nhttps://github.com/OpenRefine/OpenRefine/blob/master/main/webapp/modules/core/error.vt#L52-L53\n\nHowever, the message can contain HTML tags, which would then be interpreted by the browser. A mitigation would be to escape both the message and stack trace, perhaps using Guava's HTML escaper.\n\nFlows that report errors as `application/json` responses are not interpreted by the browser and so not affected by this issue.\n\n### PoC\n\nIn OpenRefine, use the \"Import project\" feature to import the following URL (or upload it as a file): https://wandernauta.nl/oa/example.tar.gz\n\nA JavaScript alert appears.\n\n### Impact\n\nExecution of arbitrary JavaScript in the victim's browser, provided the victim can be convinced to import a malicious project. The script can do anything the user can do.","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, la página de error integrada \"¡Algo salió mal!\" incluye el mensaje de excepción y el seguimiento de la excepción sin etiquetas HTML de escape, lo que permite la inyección en la página si un atacante puede producir de forma fiable un error con un mensaje influenciado por el atacante. Parece que la única forma de llegar a este código en OpenRefine es que un atacante convenza de algún modo a una víctima de que importe un archivo malicioso, lo que puede ser difícil. Sin embargo, las extensiones fuera del árbol pueden añadir sus propias llamadas a `respondWithErrorPage`. La versión 3.8.3 tiene una solución para este problema.","source":"nvd"}],"published":"2024-10-24T18:13:04.000Z","modified":"2026-06-17T07:57:54.737Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"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","CWE-81"],"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:openrefine","purl":"pkg:maven/org.openrefine/openrefine","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-j8hp-f2mj-586g","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenRefine/OpenRefine/commit/85594e75e7b36025f7b6a67dcd3ec253c5dff8c2","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenRefine/OpenRefine/blob/master/main/webapp/modules/core/error.vt#L52-L53","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47882","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":"partial","date":"2024-10-25T19:21:06.124Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47882","url":"https://www.cve.org/CVERecord?id=CVE-2024-47882","licence":"CVE Terms of Use","modified":"2024-10-25T19:25:18.385Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j8hp-f2mj-586g","url":"https://github.com/advisories/GHSA-j8hp-f2mj-586g","licence":"CC-BY-4.0","modified":"2024-10-24T22:39:42.380Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47882","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47882","licence":"Public domain","modified":"2026-06-17T07:57:54.737Z"}],"updatedAt":"2026-11-25T22:58:47.278Z","epss":{"score":0.00804,"percentile":0.53596,"date":"2026-11-30T12:00:22.000Z"}}