Skip to content

Bump loofah from 2.2.3 to 2.19.1 #7

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

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

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Dec 14, 2022

Bumps loofah from 2.2.3 to 2.19.1.

Release notes

Sourced from loofah's releases.

2.19.1 / 2022-12-13

Security

2.19.0 / 2022-09-14

Features

  • Allow SVG 1.0 color keyword names in CSS attributes. These colors are part of the CSS Color Module Level 3 recommendation released 2022-01-18. [#243]

2.18.0 / 2022-05-11

Features

2.17.0 / 2022-04-28

Features

2.16.0 / 2022-04-01

Features

  • Allow MathML elements menclose and ms, and MathML attributes dir, href, lquote, mathsize, notation, and rquote. [#231] (Thanks, @​nick-desteffen!)

2.15.0 / 2022-03-14

Features

  • Expand set of allowed protocols to include sms:. [#228] (Thanks, @​brendon!)

2.14.0 / 2022-02-11

Features

  • The #to_text method on Loofah::HTML::{Document,DocumentFragment} replaces <br> line break elements with a newline. [#225]

... (truncated)

Changelog

Sourced from loofah's changelog.

2.19.1 / 2022-12-13

Security

2.19.0 / 2022-09-14

Features

  • Allow SVG 1.0 color keyword names in CSS attributes. These colors are part of the CSS Color Module Level 3 recommendation released 2022-01-18. [#243]

2.18.0 / 2022-05-11

Features

2.17.0 / 2022-04-28

Features

2.16.0 / 2022-04-01

Features

  • Allow MathML elements menclose and ms, and MathML attributes dir, href, lquote, mathsize, notation, and rquote. [#231] (Thanks, @​nick-desteffen!)

2.15.0 / 2022-03-14

Features

  • Expand set of allowed protocols to include sms:. [#228] (Thanks, @​brendon!)

2.14.0 / 2022-02-11

Features

  • The #to_text method on Loofah::HTML::{Document,DocumentFragment} replaces <br> line break elements with a newline. [#225]

... (truncated)

Commits
  • 3f88063 version bump to v2.19.1
  • 9a8dadb docs: preserve the context and decision record
  • 86f7f63 fix: replace recursive approach to cdata with escaping solution
  • 415677f fix: do not allow "image/svg+xml" in data URIs
  • 84ca20c refactor: extract scrub_uri_attribute for downstream use
  • 47a835a ci: pin psych to v4 until v5 builds properly on CI
  • a6e0a1a fix: replace slow regex attribute check with crass parser
  • ea853aa Merge pull request #247 from flavorjones/flavorjones-downstream-test-rhs
  • e1f2a4b ci: test downstream rails-html-sanitizer
  • 79d65a0 Merge pull request #245 from flavorjones/flavorjones-fix-ruby-2.5-ci
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will 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 labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [loofah](https://github.com/flavorjones/loofah) from 2.2.3 to 2.19.1.
- [Release notes](https://github.com/flavorjones/loofah/releases)
- [Changelog](https://github.com/flavorjones/loofah/blob/main/CHANGELOG.md)
- [Commits](flavorjones/loofah@v2.2.3...v2.19.1)

---
updated-dependencies:
- dependency-name: loofah
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 14, 2022
@guardrails
Copy link

guardrails bot commented Dec 14, 2022

⚠️ We detected 65 security issues in this pull request:

Vulnerable Libraries (37)
Severity Details
Medium jquery-ui@1.8.23 upgrade to: >1.13.2
Medium jquery@1.8.3 upgrade to: >3.5.0
Medium jquery-validation@1.17.0 upgrade to: >1.19.3
High moment.js@2.19.0 upgrade to: >2.29.4
High actionpack@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High actionview@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High activerecord@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High activesupport@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High json@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High nokogiri@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High rack@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High rails-html-sanitizer@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High tzinfo@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High rake@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
High websocket-extensions@5.1.7 upgrade to: ~> 5.2.4, >= 5.2.4.3, >= 6.0.3.1
Low pkg:gem/actioncable@5.1.7@5.1.7 - no patch available
Medium pkg:gem/thor@0.19.4@0.19.4 - no patch available
High pkg:gem/i18n@1.6.0@1.6.0 - no patch available
High pkg:gem/tzinfo@1.2.5@1.2.5 upgrade to: 0.3.61,1.2.10
Medium pkg:gem/cucumber@3.1.2@3.1.2 - no patch available
Critical pkg:gem/railties@5.1.7@5.1.7 - no patch available
High pkg:gem/websocket-extensions@0.1.3@0.1.3 upgrade to: 0.1.5
Medium pkg:gem/activesupport@5.1.7@5.1.7 - no patch available
High pkg:gem/json@2.2.0@2.2.0 upgrade to: 2.3.0
Medium pkg:gem/loofah@2.2.3@2.2.3 - no patch available
Medium pkg:gem/rails@5.1.7@5.1.7 - no patch available
Medium pkg:gem/rails-html-sanitizer@1.0.4@1.0.4 - no patch available
Medium pkg:gem/eventmachine@1.2.7@1.2.7 - no patch available
Medium pkg:gem/jquery-rails@4.3.3@4.3.3 - no patch available
Medium pkg:gem/rack@2.0.7@2.0.7 upgrade to: 1.6.12,2.0.8
High pkg:gem/rake@12.3.2@12.3.2 - no patch available
Medium pkg:gem/puma@3.12.1@3.12.1 upgrade to: 3.12.4,4.3.3
Medium pkg:gem/actionview@5.1.7@5.1.7 upgrade to: 5.2.4.4,6.0.3.3
High pkg:gem/better_errors@2.5.1@2.5.1 - no patch available
High pkg:gem/addressable@2.6.0@2.6.0 upgrade to: 2.8.0
Critical pkg:gem/nokogiri@1.10.2@1.10.2 upgrade to: 1.10.4,1.0.7
Low pkg:gem/actionpack@5.1.7@5.1.7 - no patch available

More info on how to fix Vulnerable Libraries in JavaScript and Ruby.


Insecure Processing of Data (17)
Docs Details
💡 Title: Potential XSS (Rails), Severity: Medium
flash[:error] = "There was an issue sending password reset email to #{params[:email]}".html_safe unless params[:email].nil?
💡 Title: Insecure Deserialization (Marshal), Severity: High
user = Marshal.load(Base64.decode64(params[:user])) unless params[:user].nil?
💡 Title: Potential XSS, Severity: Medium
<style>body { font-size:<%= raw cookies[:font] %> !important;}</style>
💡 Title: Potential XSS (unquoted template variable), Severity: Medium
<table class="table table-striped table-hover table-bordered pull-left <%= "custom" if params[:field] %>" id="data-table">
💡 Title: Potential XSS (link_to), Severity: Medium
<td><%= link_to "Delete", user_message_path, {:id => "@message.id", :method => 'delete', :class => "btn btn-danger pull-left"}%></td>
💡 Title: Potential XSS (link_to), Severity: Medium
<%= link_to "Click here to reset your password", @url %><br>
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
Welcome, <%= current_user.first_name.html_safe %>
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
$("#modal_div").load(<%= credentials_tutorials_path.inspect.html_safe %>);
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
url: <%= "/users/#{current_user.id}/messages.json".inspect.html_safe %>,
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
events: <%= get_pto_schedule_schedule_index_path(:format => "json").inspect.html_safe %>,
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
[ <%= "As of today: #{Date.today}".inspect.html_safe %>, <%= @pto.sick_days_earned %>, <%= @pto.sick_days_taken %>, <%= @pto.sick_days_remaining %> ], ]);
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
[ <%= "As of today: #{Date.today}".inspect.html_safe %>, <%= @pto.pto_earned %>, <%= @pto.pto_taken %>, <%= @pto.pto_days_remaining %> ], ]);
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
[ <%= "#{p.date_submitted}".inspect.html_safe %>, <%= p.score %> ],
💡 Title: Potential XSS (html_safe) in ERB template, Severity: Medium
url: <%= "/users/#{current_user.id}.json".inspect.html_safe %>,
💡 Title: Potential XSS (content_tag) in ERB template, Severity: Medium
<%= content_tag :div, msg, :id => "flash_notice" %>
💡 Title: Potential XSS (content_tag) in ERB template, Severity: Medium
<%= content_tag :div, msg, :id => "flash_notice" %>
💡 Title: Potential XSS (content_tag) in ERB template, Severity: Medium
<%= content_tag :div, msg, :id => "flash_notice" %>

More info on how to fix Insecure Processing of Data in Ruby.


Insecure Use of Language/Framework API (2)
Docs Details
💡 Title: User Controlled Method Invocation, Severity: Medium
ActiveRecord::Base.send(:include, ActiveModel::ForbiddenAttributesProtection)
💡 Title: User Controlled Method Invocation, Severity: Medium
self.try(params[:graph])

More info on how to fix Insecure Use of Language/Framework API in Ruby.


Insecure Use of Dangerous Function (4)
Docs Details
💡 Title: Potential OS Command Injection, Severity: High
silence_streams(STDERR) { system("cp #{full_file_name} #{data_path}/bak#{Time.zone.now.to_i}_#{file.original_filename}") }
💡 Title: Unsafe Constantize, Severity: Medium
model = params[:class].classify.constantize
💡 Title: Unsafe Constantize, Severity: Medium
model = params[:class].classify.constantize
💡 Title: Unsafe Constantize, Severity: Medium
file = params[:type].constantize.new(path)

More info on how to fix Insecure Use of Dangerous Function in Ruby.


Hard-Coded Secrets (2)
Docs Details
💡 Title: Hard-coded Password (Session Secret), Severity: Medium
Railsgoat::Application.config.secret_key_base = "2f1d90a26236c3245d96f5606c201a780dc9ca687e5ed82b45e211bb5dc84c1870f61ca9e002dad5dd8a149c9792d8f07f31a9575065cca064bd6af44f8750e4"
💡 Title: Hex High Entropy String, Severity: Medium
Railsgoat::Application.config.secret_token = "2f1d90a26236c3245d96f5606c201a780dc9ca687e5ed82b45e211bb5dc84c1870f61ca9e002dad5dd8a149c9792d8f07f31a9575065cca064bd6af44f8750e4"

More info on how to fix Hard-Coded Secrets in Ruby and General.


Insecure Use of SQL Queries (1)
Docs Details
💡 Title: Potential SQL Injection, Severity: High
user = User.where("id = '#{params[:user][:id]}'")[0]

More info on how to fix Insecure Use of SQL Queries in Ruby.


Insecure Use of Regular Expressions (1)
Docs Details
💡 Title: Improper Regex Anchors, Severity: Low
validates_format_of :email, with: /.+@.+\..+/i

More info on how to fix Insecure Use of Regular Expressions in Ruby.


Insecure File Management (1)
Docs Details
💡 Title: Insecure File Access, Severity: High
send_file file, disposition: "attachment"

More info on how to fix Insecure File Management in Ruby.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants