{"id":"CVE-2021-35440","aliases":["CVE-2021-35440","GHSA-254j-mmc5-qhpx"],"related":[],"kind":"vulnerability","state":"published","title":"Smashing Cross-site Scripting vulnerability","summary":"Smashing 1.3.4 is vulnerable to Cross Site Scripting (XSS). A URL for a widget can be crafted and used to execute JavaScript on the victim's computer. The JavaScript code can then steal data available in the session/cookies depending on the user environment (e.g. if re-using internal URL's for deploying, or cookies that are very permissive) private information may be retrieved by the attacker.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Smashing 1.3.4 is vulnerable to Cross Site Scripting (XSS). A URL for a widget can be crafted and used to execute JavaScript on the victim's computer. The JavaScript code can then steal data available in the session/cookies depending on the user environment (e.g. if re-using internal URL's for deploying, or cookies that are very permissive) private information may be retrieved by the attacker.","source":"cvelist"},{"lang":"es","text":"Smashing versión 1.3.4, es vulnerable a ataques de tipo Cross Site Scripting (XSS). Una URL de un widget puede ser diseñada y usada para ejecutar JavaScript en el ordenador de la víctima. El código JavaScript puede entonces robar los datos disponibles en la sesión/cookies dependiendo del entorno del usuario (por ejemplo, si se reusan URL's internas para el despliegue, o cookies que son muy permisivas) la información privada puede ser recuperada por el atacante","source":"nvd"}],"published":"2021-07-06T14:44:39.000Z","modified":"2026-06-17T03:57:30.463Z","severity":{"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"},"severities":[{"scorer":"GitHub","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"},{"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"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.5"}],"ecosystem":"RubyGems","package":"smashing","purl":"pkg:gem/smashing","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.3.4"}],"vendor":"smashing_project","product":"smashing","cpe":"cpe:2.3:a:smashing_project:smashing:1.3.4:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Smashing/smashing/pull/186","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Smashing/smashing/pull/186#issuecomment-871727614","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Smashing/smashing/blob/ad7325f159f89854ca4e7d94e7be9bee507b6d46/CHANGELOG.md","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35440","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Smashing/smashing/pull/186/commits/f4648137ae77aa2a9ccd14b2e6eeaed2cfb32da3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Smashing/smashing","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/smashing/CVE-2021-35440.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-35440","url":"https://www.cve.org/CVERecord?id=CVE-2021-35440","licence":"CVE Terms of Use","modified":"2024-08-04T00:40:45.692Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-254j-mmc5-qhpx","url":"https://github.com/advisories/GHSA-254j-mmc5-qhpx","licence":"CC-BY-4.0","modified":"2024-02-16T08:19:53.512Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-35440","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35440","licence":"Public domain","modified":"2026-06-17T03:57:30.463Z"}],"updatedAt":"2026-11-25T22:58:02.437Z","epss":{"score":0.00995,"percentile":0.61611,"date":"2026-11-30T12:00:22.000Z"}}