# CVE-2021-35440: Smashing Cross-site Scripting vulnerability

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 62% of CVEs (2026-11-30)
- Published: 2021-07-06T14:44:39.000Z
- Modified: 2026-06-17T03:57:30.463Z
- Also known as: GHSA-254j-mmc5-qhpx
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- smashing (RubyGems): before 1.3.5
- smashing_project smashing: 1.3.4

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/Smashing/smashing/pull/186> (patch, third-party-advisory, web)
- <https://github.com/Smashing/smashing/pull/186#issuecomment-871727614> (patch, third-party-advisory)
- <https://github.com/Smashing/smashing/blob/ad7325f159f89854ca4e7d94e7be9bee507b6d46/CHANGELOG.md> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-35440> (advisory)
- <https://github.com/Smashing/smashing/pull/186/commits/f4648137ae77aa2a9ccd14b2e6eeaed2cfb32da3> (web)
- <https://github.com/Smashing/smashing> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/smashing/CVE-2021-35440.yml> (web)

## Sources

- CVE List: [CVE-2021-35440](https://www.cve.org/CVERecord?id=CVE-2021-35440), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-254j-mmc5-qhpx](https://github.com/advisories/GHSA-254j-mmc5-qhpx), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-35440](https://nvd.nist.gov/vuln/detail/CVE-2021-35440), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-35440 · Whole record: https://cve.day/CVE-2021-35440.json · Rebuilt by cve.day 2026-11-25T22:58:02.437Z
