CVE-2021-39197
Last modified
CVE-2021-39197 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. better_errors is an open source replacement for the standard Rails error page with more information rich error pages. It is also usable outside of Rails in any Rack app as Rack middleware. EPSS estimates a 0.61% chance of exploitation in the next 30 days.
Description
better_errors is an open source replacement for the standard Rails error page with more information rich error pages. It is also usable outside of Rails in any Rack app as Rack middleware. better_errors prior to 2.8.0 did not implement CSRF protection for its internal requests. It also did not enforce the correct "Content-Type" header for these requests, which allowed a cross-origin "simple request" to be made without CORS protection. These together left an application with better_errors enabled open to cross-origin attacks. As a developer tool, better_errors documentation strongly recommends addition only to the `development` bundle group, so this vulnerability should only affect development environments. Please ensure that your project limits better_errors to the `development` group (or the non-Rails equivalent). Starting with release 2.8.x, CSRF protection is enforced. It is recommended that you upgrade to the latest release, or minimally to "~> 2.8.3". There are no known workarounds to mitigate the risk of using older releases of better_errors.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Better Errors Project | Better Errors | < 2.8.0 |
References
- https://github.com/BetterErrors/better_errors/commit/8e8e796bfbde4aa088741823c8a3fc6df2089bb0Patch, Third Party Advisory
- https://github.com/BetterErrors/better_errors/discussions/507Third Party Advisory
- https://github.com/BetterErrors/better_errors/pull/474Patch, Third Party Advisory
- https://github.com/BetterErrors/better_errors/commit/8e8e796bfbde4aa088741823c8a3fc6df2089bb0Patch, Third Party Advisory
- https://github.com/BetterErrors/better_errors/discussions/507Third Party Advisory
- https://github.com/BetterErrors/better_errors/pull/474Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-39197?
How severe is CVE-2021-39197?
How do I fix CVE-2021-39197?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-39191mod_auth_openidc is an authentication/authorization module f…6.1
- CVE-2021-39192Ghost is a Node.js content management system. An error in th…7.2
- CVE-2021-39193Frontier is Substrate's Ethereum compatibility layer. Prior …5.3
- CVE-2021-39194kaml is an open source implementation of the YAML format wit…6.5
- CVE-2021-39195Misskey is an open source, decentralized microblogging platf…6.5
- CVE-2021-39196pcapture is an open source dumpcap web service interface . I…6.5
- CVE-2021-39198OroCRM is an open source Client Relationship Management (CRM…5.4
- CVE-2021-39199remark-html is an open source nodejs library which compiles …6.1
- CVE-2021-3920grav-plugin-admin is vulnerable to Improper Neutralization o…5.4
- CVE-2021-39200WordPress is a free and open-source content management syste…5.3
- CVE-2021-39201WordPress is a free and open-source content management syste…5.4
- CVE-2021-39202WordPress is a free and open-source content management syste…5.4
Are you affected by CVE-2021-39197?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
