Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 [security] Update kramdown: 1.17.0 β†’ 2.3.1 (major) #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depfu[bot]
Copy link

@depfu depfu bot commented Mar 30, 2021


Welcome to Depfu πŸ‘‹

This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.

After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.

Let us know if you have any questions. Thanks so much for giving Depfu a try!



🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

↗️ kramdown (indirect, 1.17.0 β†’ 2.3.1) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 Remote code execution in Kramdown

Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters
namespace, and thus arbitrary classes can be instantiated.

🚨 Unintended read access in kramdown gem

The kramdown gem before 2.3.0 for Ruby processes the template option inside
Kramdown documents by default, which allows unintended read access (such as
template="/etc/passwd") or unintended embedded Ruby code execution (such as a
string that begins with template="string://<%= `). NOTE: kramdown is used in
Jekyll, GitLab Pages, GitHub Pages, and Thredded Forum.

✳️ jekyll (3.8.4 β†’ 4.0.1) Β· Repo Β· Changelog

Release Notes

4.0.1

More info than we can show here.

4.0.0

More info than we can show here.

3.9.0

More info than we can show here.

3.8.7

More info than we can show here.

3.8.6

More info than we can show here.

3.8.5

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ jekyll-redirect-from (0.14.0 β†’ 0.16.0) Β· Repo Β· Changelog

Release Notes

0.16.0

More info than we can show here.

0.15.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ middleman (3.4.1 β†’ 4.3.11) Β· Repo Β· Changelog

✳️ middleman-livereload (3.3.4 β†’ 3.4.6) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ middleman-syntax (3.0.0 β†’ 3.2.0) Β· Repo Β· Changelog

Release Notes

3.2.0 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

↗️ activesupport (indirect, 4.2.11.1 β†’ 5.2.5) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 Potentially unintended unmarshalling of user-provided objects in MemCacheStore and RedisCacheStore

There is potentially unexpected behaviour in the MemCacheStore and RedisCacheStore where, when
untrusted user input is written to the cache store using the raw: true parameter, re-reading the result
from the cache can evaluate the user input as a Marshalled object instead of plain text. Vulnerable code looks like:

data = cache.fetch("demo", raw: true) { untrusted_string }

Versions Affected: rails < 5.2.5, rails < 6.0.4
Not affected: Applications not using MemCacheStore or RedisCacheStore. Applications that do not use the raw option when storing untrusted user input.
Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1

Impact

Unmarshalling of untrusted user input can have impact up to and including RCE. At a minimum,
this vulnerability allows an attacker to inject untrusted Ruby objects into a web application.

In addition to upgrading to the latest versions of Rails, developers should ensure that whenever
they are calling Rails.cache.fetch they are using consistent values of the raw parameter for both
reading and writing, especially in the case of the RedisCacheStore which does not, prior to these changes,
detect if data was serialized using the raw option upon deserialization.

Workarounds

It is recommended that application developers apply the suggested patch or upgrade to the latest release as
soon as possible. If this is not possible, we recommend ensuring that all user-provided strings cached using
the raw argument should be double-checked to ensure that they conform to the expected format.

Release Notes

5.2.5 (from changelog)

More info than we can show here.

5.2.4.5 (from changelog)

More info than we can show here.

5.2.4.4 (from changelog)

More info than we can show here.

5.2.4.3 (from changelog)

More info than we can show here.

5.2.4.1 (from changelog)

More info than we can show here.

5.2.4 (from changelog)

More info than we can show here.

4.2.11.3 (from changelog)

More info than we can show here.

4.2.11.2 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ em-websocket (indirect, 0.5.1 β†’ 0.5.2) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ ffi (indirect, 1.11.1 β†’ 1.15.0) Β· Repo Β· Changelog

Release Notes

1.15.0 (from changelog)

More info than we can show here.

1.14.2 (from changelog)

More info than we can show here.

1.14.1 (from changelog)

More info than we can show here.

1.14.0 (from changelog)

More info than we can show here.

1.13.1 (from changelog)

More info than we can show here.

1.13.0 (from changelog)

More info than we can show here.

1.12.2 (from changelog)

More info than we can show here.

1.12.1 (from changelog)

More info than we can show here.

1.12.0 (from changelog)

More info than we can show here.

1.11.3 (from changelog)

More info than we can show here.

1.11.2 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ haml (indirect, 5.0.4 β†’ 5.2.1) Β· Repo Β· Changelog

Release Notes

5.2.1

More info than we can show here.

5.2.0

More info than we can show here.

5.1.2 (from changelog)

More info than we can show here.

5.1.1 (from changelog)

More info than we can show here.

5.1.0 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ i18n (indirect, 0.7.0 β†’ 0.9.5) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 i18n Gem for Ruby lib/i18n/core_ext/hash.rb Hash#slice() Function Hash Handling DoS

i18n Gem for Ruby contains a flaw in the Hash#slice() function in
lib/i18n/core_ext/hash.rb that is triggered when calling a hash when
:some_key is in keep_keys but not in the hash. This may allow an attacker
to cause the program to crash.

Release Notes

0.9.5

More info than we can show here.

0.9.4

More info than we can show here.

0.9.3

More info than we can show here.

0.9.1

More info than we can show here.

0.9.0

More info than we can show here.

0.8.6

More info than we can show here.

0.8.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ jekyll-sass-converter (indirect, 1.5.2 β†’ 2.1.0) Β· Repo Β· Changelog

Release Notes

2.1.0

More info than we can show here.

2.0.1

More info than we can show here.

2.0.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ jekyll-watch (indirect, 2.0.0 β†’ 2.2.1) Β· Repo Β· Changelog

Release Notes

2.2.1

More info than we can show here.

2.1.2

More info than we can show here.

2.1.1

More info than we can show here.

2.1.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ liquid (indirect, 4.0.0 β†’ 4.0.3) Β· Repo Β· Changelog

Release Notes

4.0.3 (from changelog)

More info than we can show here.

4.0.2 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ middleman-core (indirect, 3.4.1 β†’ 4.3.11)

Sorry, we couldn't find anything useful about this release.

↗️ mini_portile2 (indirect, 2.4.0 β†’ 2.5.0) Β· Repo Β· Changelog

Release Notes

2.5.0

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ minitest (indirect, 5.11.3 β†’ 5.14.4) Β· Repo Β· Changelog

Release Notes

5.14.4 (from changelog)

More info than we can show here.

5.14.3 (from changelog)

More info than we can show here.

5.14.2 (from changelog)

More info than we can show here.

5.14.0 (from changelog)

More info than we can show here.

5.13.0 (from changelog)

More info than we can show here.

5.12.2 (from changelog)

More info than we can show here.

5.12.1 (from changelog)

More info than we can show here.

5.12.0 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ multi_json (indirect, 1.13.1 β†’ 1.15.0) Β· Repo Β· Changelog

Release Notes

1.15.0 (from changelog)

More info than we can show here.

1.14.1 (from changelog)

More info than we can show here.

1.14.0 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ nokogiri (indirect, 1.10.8 β†’ 1.11.2) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 Nokogiri::XML::Schema trusts input by default, exposing risk of an XXE vulnerability

Description

In Nokogiri versions <= 1.11.0.rc3, XML Schemas parsed by Nokogiri::XML::Schema
are trusted by default, allowing external resources to be accessed over the
network, potentially enabling XXE or SSRF attacks.

This behavior is counter to
the security policy followed by Nokogiri maintainers, which is to treat all input
as untrusted by default whenever possible.

Please note that this security
fix was pushed into a new minor version, 1.11.x, rather than a patch release to
the 1.10.x branch, because it is a breaking change for some schemas and the risk
was assessed to be "Low Severity".

Affected Versions

Nokogiri <= 1.10.10 as well as prereleases 1.11.0.rc1, 1.11.0.rc2, and 1.11.0.rc3

Mitigation

There are no known workarounds for affected versions. Upgrade to Nokogiri
1.11.0.rc4 or later.

If, after upgrading to 1.11.0.rc4 or later, you wish
to re-enable network access for resolution of external resources (i.e., return to
the previous behavior):

  1. Ensure the input is trusted. Do not enable this option
    for untrusted input.
  2. When invoking the Nokogiri::XML::Schema constructor,
    pass as the second parameter an instance of Nokogiri::XML::ParseOptions with the
    NONET flag turned off.

So if your previous code was:

# in v1.11.0.rc3 and earlier, this call allows resources to be accessed over the network
# but in v1.11.0.rc4 and later, this call will disallow network access for external resources
schema = Nokogiri::XML::Schema.new(schema)

# in v1.11.0.rc4 and later, the following is equivalent to the code above
# (the second parameter is optional, and this demonstrates its default value)
schema = Nokogiri::XML::Schema.new(schema, Nokogiri::XML::ParseOptions::DEFAULT_SCHEMA)

Then you can add the second parameter to indicate that the input is trusted by changing it to:

# in v1.11.0.rc3 and earlier, this would raise an ArgumentError
# but in v1.11.0.rc4 and later, this allows resources to be accessed over the network
schema = Nokogiri::XML::Schema.new(trusted_schema, Nokogiri::XML::ParseOptions.new.nononet)
Release Notes

1.11.2

More info than we can show here.

1.11.1

More info than we can show here.

1.11.0

More info than we can show here.

1.10.10

More info than we can show here.

1.10.9

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ padrino-helpers (indirect, 0.12.9 β†’ 0.13.3.4) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ padrino-support (indirect, 0.12.9 β†’ 0.13.3.4) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ pathutil (indirect, 0.16.1 β†’ 0.16.2) Β· Repo

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ public_suffix (indirect, 4.0.1 β†’ 4.0.6) Β· Repo Β· Changelog

Release Notes

4.0.6 (from changelog)

More info than we can show here.

4.0.5 (from changelog)

More info than we can show here.

4.0.4 (from changelog)

More info than we can show here.

4.0.3 (from changelog)

More info than we can show here.

4.0.2 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ rack (indirect, 1.6.12 β†’ 1.6.13) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ rb-fsevent (indirect, 0.10.3 β†’ 0.10.4) Β· Repo

Release Notes

0.10.4

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ rb-inotify (indirect, 0.9.10 β†’ 0.10.1) Β· Repo

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ rouge (indirect, 2.2.1 β†’ 3.26.0) Β· Repo Β· Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ safe_yaml (indirect, 1.0.4 β†’ 1.0.5) Β· Repo Β· Changelog

Release Notes

1.0.5 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ temple (indirect, 0.8.0 β†’ 0.8.2) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ thor (indirect, 0.20.0 β†’ 1.1.0) Β· Repo Β· Changelog

Release Notes

1.1.0 (from changelog)

More info than we can show here.

1.0.1 (from changelog)

More info than we can show here.

1.0.0 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ tilt (indirect, 1.4.1 β†’ 2.0.10) Β· Repo Β· Changelog

Release Notes

2.0.10 (from changelog)

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ tzinfo (indirect, 1.2.5 β†’ 1.2.9) Β· Repo Β· Changelog

Release Notes

1.2.9

More info than we can show here.

1.2.8

More info than we can show here.

1.2.7

More info than we can show here.

1.2.6

More info than we can show here.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ uglifier (indirect, 2.7.2 β†’ 3.2.0) Β· Repo Β· Changelog

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

πŸ†• backports (added, 3.20.2)

πŸ†• concurrent-ruby (added, 1.1.8)

πŸ†• contracts (added, 0.13.0)

πŸ†• dotenv (added, 2.7.6)

πŸ†• fast_blank (added, 1.0.0)

πŸ†• fastimage (added, 2.2.3)

πŸ†• hamster (added, 3.0.0)

πŸ†• hashie (added, 3.6.0)

πŸ†• kramdown-parser-gfm (added, 1.1.0)

πŸ†• memoist (added, 0.16.2)

πŸ†• middleman-cli (added, 4.3.11)

πŸ†• racc (added, 1.5.2)

πŸ†• rexml (added, 3.2.4)

πŸ†• sassc (added, 2.4.0)

πŸ†• servolux (added, 0.13.0)

πŸ†• terminal-table (added, 1.8.0)

πŸ—‘οΈ capybara (removed)

πŸ—‘οΈ chunky_png (removed)

πŸ—‘οΈ compass (removed)

πŸ—‘οΈ compass-import-once (removed)

πŸ—‘οΈ hike (removed)

πŸ—‘οΈ hooks (removed)

πŸ—‘οΈ json (removed)

πŸ—‘οΈ middleman-sprockets (removed)

πŸ—‘οΈ mime-types (removed)

πŸ—‘οΈ mime-types-data (removed)

πŸ—‘οΈ rack-test (removed)

πŸ—‘οΈ sprockets (removed)

πŸ—‘οΈ sprockets-helpers (removed)

πŸ—‘οΈ sprockets-sass (removed)

πŸ—‘οΈ uber (removed)

πŸ—‘οΈ xpath (removed)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants