GitHub Advisoryadvisory · RubyGems
GHSA-254j-mmc5-qhpx Smashing Cross-site Scripting vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2021-35440
- Ecosystem
- RubyGems
- Packages
- smashing
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2023-01-27
Affected packages
• RubyGems smashing: < 1.3.5 → fixed in 1.3.5
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.
Related
Alias · CVE (1)
- CVE-2021-35440 Smashing 1.3.4 is vulnerable to Cross Site Scripting (XSS). vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-35440 advisory
- https://github.com/Smashing/smashing/pull/186 web
- https://github.com/Smashing/smashing/pull/186/commits/f4648137ae77aa2a9ccd14b2e6eeaed2cfb32da3 web
- https://github.com/Smashing/smashing package
- https://github.com/Smashing/smashing/blob/ad7325f159f89854ca4e7d94e7be9bee507b6d46/CHANGELOG.md web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/smashing/CVE-2021-35440.yml web