CVE-2021-39197

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-39197
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-39197.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-39197
Aliases
Published
2021-09-07T18:15:07Z
Modified
2024-10-12T08:20:03.693142Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

bettererrors 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. bettererrors 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 bettererrors enabled open to cross-origin attacks. As a developer tool, bettererrors documentation strongly recommends addition only to the development bundle group, so this vulnerability should only affect development environments. Please ensure that your project limits bettererrors 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 bettererrors.

References

Affected packages

Git / github.com/bettererrors/better_errors

Affected ranges

Type
GIT
Repo
https://github.com/bettererrors/better_errors
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.1.0
v0.1.1
v0.2.0
v0.3.0
v0.3.2
v0.5.0
v0.6.0
v0.7.0
v0.7.2
v0.8.0
v0.9.0

v1.*

v1.0.0
v1.0.0.rc1
v1.0.1
v1.1.0

v2.*

v2.0.0
v2.1.0
v2.1.1
v2.2.0
v2.3.0
v2.4.0
v2.5.0
v2.5.1
v2.6.0
v2.7.0
v2.7.1