presidentbeef / brakeman

A static analysis security vulnerability scanner for Ruby on Rails applications
https://brakemanscanner.org/
Other
7.02k stars 732 forks source link

Require Prism 1.0+ for --prism #1882

Closed presidentbeef closed 1 week ago

dryrunsecurity[bot] commented 2 weeks ago

DryRun Security Summary

The pull request updates the version requirement for the "prism" gem used by the Brakeman application security tool, relaxing the version requirement to allow for newer versions of the gem.

Expand for full summary
**Summary:** The changes in this pull request are related to updating the version requirement for the "prism" gem used by the Brakeman application security tool. The changes are made in two files: `test/tests/options.rb` and `lib/brakeman/options.rb`. The change in `test/tests/options.rb` updates the version requirement from `~>0.30` to `>=1.0`, which indicates that the developers are updating the dependencies of the Brakeman tool to use a newer version of the "prism" gem. This could be done for various reasons, such as addressing security vulnerabilities in the older version, leveraging new features or improvements, or ensuring compatibility with other dependencies. The change in `lib/brakeman/options.rb` relaxes the version requirement for the "prism" gem from a specific version to any version greater than or equal to the specified version. This change is likely to improve the compatibility and usability of the Brakeman tool, which is an important part of the application security ecosystem. Overall, these changes are routine updates to the tool's dependencies and do not appear to have any direct security implications. However, it's always important to review dependency updates carefully, as they can sometimes introduce new security vulnerabilities or breaking changes. **Files Changed:** 1. `test/tests/options.rb`: This file contains a test for the `--prism` command-line option of the Brakeman tool. The change updates the version requirement for the "prism" gem from `~>0.30` to `>=1.0`. 2. `lib/brakeman/options.rb`: This file contains the logic for parsing command-line options for the Brakeman tool. The change relaxes the version requirement for the "prism" gem from a specific version to any version greater than or equal to the specified version.

Code Analysis

We ran 9 analyzers against 2 files and 0 analyzers had findings. 9 analyzers had no findings.

Riskiness

:green_circle: Risk threshold not exceeded.

View PR in the DryRun Dashboard.