CVE-2021-39197 — Vulnerability in better_errors — CVE Details
Older releases of better_errors open to Cross-Site Request Forgery attack
Summary
Advisory Timeline
- First published September 7, 2021 (1861 days ago).
- Last revised July 8, 2026 — 1764 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install better_errors -v 2.8.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| better_errors | rubygems | 0.0.1, 0.0.2, 0.0.3, 0.0.4 (+30 more) | 2.8.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-352Cross-Site Request Forgery (CSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/BetterErrors/better_errors/security/advisories/GHSA-w3j4-76qw-wwjmWEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-39197ADVISORY
- https://github.com/BetterErrors/better_errors/pull/474WEB
- https://github.com/BetterErrors/better_errors/commit/8e8e796bfbde4aa088741823c8a3fc6df2089bb0WEB
- https://github.com/BetterErrors/better_errorsPACKAGE
- https://github.com/BetterErrors/better_errors/discussions/507WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/better_errors/CVE-2021-39197.ymlWEB
Frequently Asked Questions
- What is CVE-2021-39197?
- Older releases of better_errors open to Cross-Site Request Forgery attack This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.3/10).
- How do I check if my project is affected by CVE-2021-39197?
- CVE-2021-39197 affects better_errors. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-39197 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies