Skip to content

Update addressable to address CVE-2021-32740 - #479

Merged
arpitjalan merged 1 commit into
discourse:masterfrom
mission-met:update-addressable
Jul 13, 2021
Merged

Update addressable to address CVE-2021-32740#479
arpitjalan merged 1 commit into
discourse:masterfrom
mission-met:update-addressable

Conversation

@rickychilcott

@rickychilcott rickychilcott commented Jul 12, 2021

Copy link
Copy Markdown
Contributor

@arpitjalan
arpitjalan merged commit e7066d5 into discourse:master Jul 13, 2021
@arpitjalan

Copy link
Copy Markdown
Member

Looking at:

Regular Expression Denial of Service in Addressable templates · Advisory · sporkmonger/addressable (github.com)

and

sporkmonger/addressable@b48ff03

I checked our source code and verified that onebox is not vulnerable here because this CVE only affects Addressable::Template component which we are not using anywhere. We only use Addressable::URI for parsing URLs.

That said, I see no harm in merging this PR. Thanks @rickychilcott! 👍🏼

@rickychilcott

Copy link
Copy Markdown
Contributor Author

Thank you so much @techapj. This was to fix an upstream gem which is in my project.

I appreciate the quick merge. Do you plan to cut a new gem version?

@SamSaffron

SamSaffron commented Jul 13, 2021 via email

Copy link
Copy Markdown
Member

@rickychilcott

rickychilcott commented Jul 13, 2021 via email

Copy link
Copy Markdown
Contributor Author

@rickychilcott

rickychilcott commented Jul 15, 2021

Copy link
Copy Markdown
Contributor Author

Hi again. I would like a gem version to be cut, if possible. The reason is that I don't use onebox directly, it's a dependency of https://github.com/thredded/thredded which my project uses.

I can add an entry to my Gemfile (such as gem "onebox", github: "discourse/onebox", branch: "master"). This will give me the latest addressable gem and allow me to remove my bundler audit warning, but most will have to track back through the dependency graph to figure out how to do that.

If you cut a new release, users of onebox (which are using it as part of a 3rd party engine or gem) won't have to add the onbox entry to their Gemfile.

I'm fine for now, myself, but this could cause issues for others. Thank you for considering.

Related to thredded/thredded#893

@arpitjalan

Copy link
Copy Markdown
Member

Onebox gem v2.2.18 has been published: https://rubygems.org/gems/onebox/versions/2.2.18.

@rickychilcott

Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants