{"id":"CVE-2020-15092","aliases":["CVE-2020-15092","GHSA-2jpm-827p-j44g"],"related":[],"kind":"vulnerability","state":"published","title":"Stored XSS in TimelineJS3","summary":"In TimelineJS before version 3.7.0, some user data renders as HTML. An attacker could implement an XSS exploit with maliciously crafted content in a number of data fields. This risk is present whether the source data for the timeline is stored on Google Sheets or in a JSON configuration file. Most TimelineJS users configure their timeline with a Google Sheets document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if they grant public write access to the document. Some TimelineJS users configure their timeline with a JSON document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if write access to the system hosting that document is otherwise compromised. Version 3.7.0 of TimelineJS addresses this in two ways. For content which is intended to support limited HTML markup for styling and linking, that content is \"sanitized\" before being added to the DOM. For content intended for simple text display, all markup is stripped. Very few users of TimelineJS actually install the TimelineJS code on their server. Most users publish a timeline using a URL hosted on systems we control. The fix for this issue is published to our system such that **those users will automatically begin using the new code**. The only exception would be users who have deliberately edited the embed URL to \"pin\" their timeline to an earlier version of the code. Some users of TimelineJS use it as a part of a wordpress plugin (knight-lab-timelinejs). Version 3.7.0.0 of that plugin and newer integrate the updated code. Users are encouraged to update the plugin rather than manually update the embedded version of TimelineJS.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In TimelineJS before version 3.7.0, some user data renders as HTML. An attacker could implement an XSS exploit with maliciously crafted content in a number of data fields. This risk is present whether the source data for the timeline is stored on Google Sheets or in a JSON configuration file. Most TimelineJS users configure their timeline with a Google Sheets document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if they grant public write access to the document. Some TimelineJS users configure their timeline with a JSON document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if write access to the system hosting that document is otherwise compromised. Version 3.7.0 of TimelineJS addresses this in two ways. For content which is intended to support limited HTML markup for styling and linking, that content is \"sanitized\" before being added to the DOM. For content intended for simple text display, all markup is stripped. Very few users of TimelineJS actually install the TimelineJS code on their server. Most users publish a timeline using a URL hosted on systems we control. The fix for this issue is published to our system such that **those users will automatically begin using the new code**. The only exception would be users who have deliberately edited the embed URL to \"pin\" their timeline to an earlier version of the code. Some users of TimelineJS use it as a part of a wordpress plugin (knight-lab-timelinejs). Version 3.7.0.0 of that plugin and newer integrate the updated code. Users are encouraged to update the plugin rather than manually update the embedded version of TimelineJS.","source":"cvelist"},{"lang":"en","text":"### Impact\nTimelineJS renders some user data as HTML. An attacker could implement an XSS exploit with maliciously crafted content in a number of data fields. This risk is present whether the source data for the timeline is stored on Google Sheets or in a JSON configuration file.\n\nMost TimelineJS users configure their timeline with a Google Sheets document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if they grant public write access to the document.\n\nSome TimelineJS users configure their timeline with a JSON document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if write access to the system hosting that document is otherwise compromised.\n\nAlthough the vulnerability has a [CVSS v3.1 base score of 7.2](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H), this vulnerability has a severity of Moderate due to the likeliness of exploitation.\n\n### Patches\nVersion 3.7.0 of TimelineJS addresses this in two ways. \n\n1. For content which is intended to support limited HTML markup for styling and linking, that content is \"sanitized\" before being added to the DOM.\n1. For content intended for simple text display, all markup is stripped. \n\nVery few users of TimelineJS actually install the TimelineJS code on their server. Most users publish a timeline using a URL hosted on systems we control. The fix for this issue is published to our system such that **those users will automatically begin using the new code**. The only exception would be users who have deliberately edited the embed URL to \"pin\" their timeline to an earlier version of the code.\n\nSome users of TimelineJS use it as a part of a [wordpress plugin](https://wordpress.org/plugins/knight-lab-timelinejs/). Version 3.7.0.0 of that plugin and newer integrate the updated code. Users are encouraged to update the plugin rather than manually update the embedded version of TimelineJS.\n\n### Workarounds\nTo exploit this vulnerability, the attacker must have write access to the data source for the Timeline or the server which embeds the timeline.\n\nThus, the only workaround is appropriate attention to securing write access to the Google Sheet or JSON file which serves as the data source.\n\n### References\nFor more about the release of TimelineJS which addresses this vulnerability, see the [Knight Lab website](https://knightlab.northwestern.edu/2020/07/09/timelinejs-update/index.html).\n\nA technical write-up of this vulnerability is available [here](https://zanderwork.com/blog/cve-2020-15092/).\n\n### Acknowledgements\n\nThis vulnerability was discovered by Zander Work ([@captainGeech42](https://twitter.com/captainGeech42)) of Oregon State University.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [GitHub](https://github.com/NUKnightLab/TimelineJS3/issues)\n* File a support request in our [helpdesk system](https://knightlab.zendesk.com/hc/en-us/requests/new)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En TimelineJS antes de la versión 3.7.0, algunos datos de usuario se renderizan como HTML. Un atacante podría implementar una explotación de tipo XSS con contenido diseñado maliciosamente en varios campos de datos. Este riesgo está presente si los datos de origen para la línea de tiempo son almacenados en Google Sheets o en un archivo de configuración JSON. La mayoría de los usuarios de TimelineJS configuran su línea de tiempo con un documento de Google Sheets. Esos usuarios están expuestos a esta vulnerabilidad si otorgan acceso de escritura al documento a un atacante interno malicioso, si el acceso de un usuario confiable es comprometido o si otorgan acceso de escritura pública al documento. Algunos usuarios de TimelineJS configuran su línea de tiempo con un documento JSON. Esos usuarios están expuestos a esta vulnerabilidad si otorgan acceso de escritura al documento a un atacante interno malicioso, si el acceso de un usuario confiable es comprometido o si el acceso de escritura al sistema que aloja ese documento esta comprometido de otra manera. La versión 3.7.0 de TimelineJS aborda esto de dos maneras. Para el contenido que es destinado a admitir un marcado HTML limitado para el estilo y la vinculación, ese contenido es \"\"sanitized\"\" antes de agregarse al DOM. Para el contenido previsto para la visualización de texto simple, todo el marcado es eliminado. Muy pocos usuarios de TimelineJS realmente instalan el código TimelineJS en su servidor. La mayoría de los usuarios publican una línea de tiempo usando una URL alojada en los sistemas que controlamos. La corrección para este problema es publicado en nuestro sistema de manera que **esos usuarios comenzarán a usar automáticamente el nuevo código**. La única excepción sería que los usuarios que hayan editado deliberadamente la URL insertada para hacer \"\"pin\"\" en su línea de tiempo a una versión anterior del código. Algunos usuarios de TimelineJS lo usan como parte de un plugin de wordpress (knight-lab-timelinejs). La versión 3.7.0.0 de ese plugin y las más nuevas integran el código actualizado. Se exhorta a los usuarios a actualizar el plugin en lugar de actualizar manualmente la versión insertada de TimelineJS","source":"nvd"}],"published":"2020-07-09T18:25:12.000Z","modified":"2026-07-08T06:29:20.984Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 3.7.0","status":"affected"}],"vendor":"NUKnightLab","product":"TimelineJS3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.7.0"}],"ecosystem":"npm","package":"@knight-lab/timelinejs","purl":"pkg:npm/%40knight-lab/timelinejs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.7.0"}],"vendor":"northwestern","product":"timelinejs","cpe":"cpe:2.3:a:northwestern:timelinejs:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/NUKnightLab/TimelineJS3/security/advisories/GHSA-2jpm-827p-j44g","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://knightlab.northwestern.edu/posts/","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15092","tags":["advisory"],"sources":["ghsa"]},{"url":"https://knightlab.northwestern.edu/2020/07/09/timelinejs-update/index.html","tags":["web"],"sources":["ghsa"]},{"url":"https://knightlab.northwestern.edu/posts","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15092","url":"https://www.cve.org/CVERecord?id=CVE-2020-15092","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:21.479Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2jpm-827p-j44g","url":"https://github.com/advisories/GHSA-2jpm-827p-j44g","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:20.984Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15092","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15092","licence":"Public domain","modified":"2026-06-17T02:56:02.193Z"}],"updatedAt":"2026-11-25T22:57:53.302Z","epss":{"score":0.0106,"percentile":0.65491,"date":"2026-12-01T12:00:22.000Z"}}