[Security] Bump sprockets from 3.7.1 to 4.0.2 by dependabot-preview[bot] · Pull Request #28 · lyuich/sample-rails-ruby
Bumps sprockets from 3.7.1 to 4.0.2. This update includes a security fix.
Vulnerabilities fixed
Sourced from The Ruby Advisory Database.
Path Traversal in Sprockets Specially crafted requests can be used to access files that exist on the filesystem that is outside an application's root directory, when the Sprockets server is used in production.
All users running an affected release should either upgrade or use one of the work arounds immediately.
Workaround: In Rails applications, work around this issue, set
config.assets.compile = falseandconfig.public_file_server.enabled = truein an initializer and precompile the assets.This work around will not be possible in all hosting environments and upgrading is advised.
Patched versions: >= 2.12.5, < 3.0.0; >= 3.7.2, < 4.0.0; >= 4.0.0.beta8 Unaffected versions: none
Changelog
Sourced from sprockets's changelog.
4.0.2
- Fix
etagand digest path compilation that were generating string with invalid digest since 4.0.1.4.0.1
- Fix for Ruby 2.7 keyword arguments warning in
base.rb. #660- Fix for when
x_sprockets_linecountis missing from a source map.- Fix subresource integrity to match the digest of the asset.
4.0.0
4.0.0.beta10
- Fix YACB (Yet Another Caching Bug) Fix broken expansion of asset link paths
4.0.0.beta9
- Minimum Ruby version for Sprockets 4 is now 2.5+ which matches minimum ruby verision of Rails #604
- Fix threading bug introduced in Sprockets 4 #603
- Warn when two potential manifest files exist. #560
4.0.0.beta8
- Security release for CVE-2018-3760
4.0.0.beta7
- Fix a year long bug that caused
Sprockets::FileNotFounderrors when the asset was present #547- Raise an error when two assets such as foo.js and foo.js.erb would produce the same output artifact (foo.js) [#549 #530]
- Process
*.jst.eco.erbfiles with ERBProcessor4.0.0.beta6
4.0.0.beta5
- Reduce string allocations
- Source map metadata uses compressed form specified by the source map v3 spec. #402 [BREAKING]
- Generate index maps when decoding source maps isn't necessary. #402
- Remove fingerprints from source map files. #402
4.0.0.beta4
... (truncated)
- Changing the version now busts the digest of all assets #404
Commits
8fc492aMerge pull request #685 from matteeyah/masterc995430Use character for #delete_prefix instead of RegEx53efbb8Fix rubocop violation9d1902bOnly digest the environment version if it is not blank97e2ac6Prepare to 4.0.2b698a1aDigest the environment and digest before packing the hexdigest841ddbeTest with Ruby 2.7ac399e5Prepare to 4.0.17f64817Make sure the digest path changes when the environment changes0bcb8aeNo need to call self here- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)