[Security] Bump nokogiri from 1.11.1 to 1.12.0
Bumps nokogiri from 1.11.1 to 1.12.0. This update includes security fixes.
Vulnerabilities fixed
Sourced from The GitHub Security Advisory Database.
Update packaged dependency libxml2 from 2.9.10 to 2.9.12
Summary
Nokogiri v1.11.4 updates the vendored libxml2 from v2.9.10 to v2.9.12 which addresses:
- CVE-2019-20388 (Medium severity)
- CVE-2020-24977 (Medium severity)
- CVE-2021-3517 (Medium severity)
- CVE-2021-3518 (Medium severity)
- CVE-2021-3537 (Low severity)
- CVE-2021-3541 (Low severity)
Note that two additional CVEs were addressed upstream but are not relevant to this release. CVE-2021-3516 via
xmllintis not present in Nokogiri, and CVE-2020-7595 has been patched in Nokogiri since v1.10.8 (see #1992).Please note that this advisory only applies to the CRuby implementation of Nokogiri
< 1.11.4, and only if the packaged version of libxml2 is being used. If you've overridden defaults at installation time to use system libraries instead of packaged libraries, you should instead pay attention to your distro'slibxml2release announcements.Mitigation
Upgrade to Nokogiri
>= 1.11.4.
... (truncated)
Affected versions: < 1.11.4
Sourced from The Ruby Advisory Database.
Update packaged dependency libxml2 from 2.9.10 to 2.9.12
Summary
Nokogiri v1.11.4 updates the vendored libxml2 from v2.9.10 to v2.9.12 which addresses:
- CVE-2019-20388 (Medium severity)
- CVE-2020-24977 (Medium severity)
- CVE-2021-3517 (Medium severity)
- CVE-2021-3518 (Medium severity)
- CVE-2021-3537 (Low severity)
- CVE-2021-3541 (Low severity)
Note that two additional CVEs were addressed upstream but are not relevant to this release. CVE-2021-3516 via
xmllintis not present in Nokogiri, and CVE-2020-7595 has been patched in Nokogiri since v1.10.8 (see #1992).Please note that this advisory only applies to the CRuby implementation of Nokogiri
< 1.11.4, and only if the packaged version of libxml2 is being used. If you've overridden defaults at installation time to use system libraries instead of packaged libraries, you should instead pay attention to your distro'slibxml2release announcements.Mitigation
Upgrade to Nokogiri
>= 1.11.4.
... (truncated)
Patched versions: >= 1.11.4 Unaffected versions: none
Release notes
Sourced from nokogiri's releases.
1.12.0 / 2021-08-02
Notable Addition: HTML5 Support (CRuby only)
HTML5 support has been added (to CRuby only) by merging Nokogumbo into Nokogiri. The Nokogumbo public API has been preserved, so this functionality is available under the
Nokogiri::HTML5namespace. [#2204]Please note that HTML5 support is not available for JRuby in this version. However, we feel it is important to think about JRuby and we hope to work on this in the future. If you're interested in helping with HTML5 support on JRuby, please reach out to the maintainers by commenting on issue #2227.
Many thanks to Sam Ruby, Steve Checkoway, and Craig Barnes for creating and maintaining Nokogumbo and supporting the Gumbo HTML5 parser. They're now Nokogiri core contributors with all the powers and privileges pertaining thereto. 🙌
Notable Change:
Nokogiri::HTML4module and namespace
Nokogiri::HTMLhas been renamed toNokogiri::HTML4, andNokogiri::HTMLis aliased to preserve backwards-compatibility.Nokogiri::HTMLandNokogiri::HTML4parse methods still use libxml2's (or NekoHTML's) HTML4 parser in the v1.12 release series.Take special note that if you rely on the class name of an object in your code, objects will now report a class of
Nokogiri::HTML4::Foowhere they previously reportedNokogiri::HTML::Foo. Instead of relying on the string returned byObject#class, preferClass#===orObject#is_a?orObject#instance_of?.Future releases of Nokogiri may deprecate
HTMLmethods or otherwise change this behavior, so please start usingHTML4in place ofHTML.Added
- [CRuby]
Nokogiri::VERSION_INFO["libxslt"]["datetime_enabled"]is a new boolean value which describes whether libxslt (or, more properly, libexslt) has compiled-in datetime support. This generally going to betrue, but some distros ship without this support (e.g., some mingw UCRT-based packages, see msys2/MINGW-packages#8957). See #2272 for more details.Changed
- Introduce a new constant,
Nokogiri::XML::ParseOptions::DEFAULT_XSLT, which adds the libxslt-preferred options ofNOENT | DTDLOAD | DTDATTR | NOCDATAtoParseOptions::DEFAULT_XML.Nokogiri.XSLTparses stylesheets usingParseOptions::DEFAULT_XSLT, which should make some edge-case XSL transformations match libxslt's default behavior. [#1940]Fixed
- [CRuby] Namespaced attributes are handled properly when their parent node is reparented into another document. Previously, the namespace may have gotten dropped. [#2228]
- [CRuby] Reparented nodes no longer inherit their parent's namespace. Previously, a node without a namespace was forced to adopt its parent's namespace. [#1712]
Improved
- [CRuby] Speed up (slightly) the compile time of packaged libraries
libiconv,libxml2, andlibxsltby using autoconf's--disable-dependency-trackingoption. ("ruby" platform gem only.)Deprecated
- Deprecating Nokogumbo's
Nokogiri::HTML5.get. This method will be removed in a future version of Nokogiri.Dependencies
- [CRuby] Upgrade mini_portile2 dependency from
~> 2.5.0to~> 2.6.1. ("ruby" platform gem only.)
... (truncated)
Changelog
Sourced from nokogiri's changelog.
1.12.0 / 2021-08-02
Notable Addition: HTML5 Support (CRuby only)
HTML5 support has been added (to CRuby only) by merging Nokogumbo into Nokogiri. The Nokogumbo public API has been preserved, so this functionality is available under the
Nokogiri::HTML5namespace. [#2204]Please note that HTML5 support is not available for JRuby in this version. However, we feel it is important to think about JRuby and we hope to work on this in the future. If you're interested in helping with HTML5 support on JRuby, please reach out to the maintainers by commenting on issue #2227.
Many thanks to Sam Ruby, Steve Checkoway, and Craig Barnes for creating and maintaining Nokogumbo and supporting the Gumbo HTML5 parser. They're now Nokogiri core contributors with all the powers and privileges pertaining thereto. 🙌
Notable Change:
Nokogiri::HTML4module and namespace
Nokogiri::HTMLhas been renamed toNokogiri::HTML4, andNokogiri::HTMLis aliased to preserve backwards-compatibility.Nokogiri::HTMLandNokogiri::HTML4parse methods still use libxml2's (or NekoHTML's) HTML4 parser in the v1.12 release series.Take special note that if you rely on the class name of an object in your code, objects will now report a class of
Nokogiri::HTML4::Foowhere they previously reportedNokogiri::HTML::Foo. Instead of relying on the string returned byObject#class, preferClass#===orObject#is_a?orObject#instance_of?.Future releases of Nokogiri may deprecate
HTMLmethods or otherwise change this behavior, so please start usingHTML4in place ofHTML.Added
- [CRuby]
Nokogiri::VERSION_INFO["libxslt"]["datetime_enabled"]is a new boolean value which describes whether libxslt (or, more properly, libexslt) has compiled-in datetime support. This generally going to betrue, but some distros ship without this support (e.g., some mingw UCRT-based packages, see msys2/MINGW-packages#8957). See #2272 for more details.Changed
- Introduce a new constant,
Nokogiri::XML::ParseOptions::DEFAULT_XSLT, which adds the libxslt-preferred options ofNOENT | DTDLOAD | DTDATTR | NOCDATAtoParseOptions::DEFAULT_XML.Nokogiri.XSLTparses stylesheets usingParseOptions::DEFAULT_XSLT, which should make some edge-case XSL transformations match libxslt's default behavior. [#1940]Fixed
- [CRuby] Namespaced attributes are handled properly when their parent node is reparented into another document. Previously, the namespace may have gotten dropped. [#2228]
- [CRuby] Reparented nodes no longer inherit their parent's namespace. Previously, a node without a namespace was forced to adopt its parent's namespace. [#1712]
Improved
- [CRuby] Speed up (slightly) the compile time of packaged libraries
libiconv,libxml2, andlibxsltby using autoconf's--disable-dependency-trackingoption. ("ruby" platform gem only.)Deprecated
- Deprecating Nokogumbo's
Nokogiri::HTML5.get. This method will be removed in a future version of Nokogiri.Dependencies
- [CRuby] Upgrade mini_portile2 dependency from
~> 2.5.0to~> 2.6.1. ("ruby" platform gem only.)
... (truncated)
Commits
8cafceeversion bump to v1.12.04baf430ci: library cache should be keyed on patches9e6e6acMerge pull request #2290 from sparklemotion/2276-gumbo-parseargsb8f4abdfix(gumbo): use C struct pointer directly instead of wrapping2bb0084docs: small edits to the HTML5 docs.3399e16version bump to v1.12.0.rc171c5822Merge pull request #2288 from sparklemotion/flavorjones-upstream-html5lib-testsca05768ci(upstream): run against latest html5lib-tests masterab6c3e4Merge pull request #2287 from stevecheckoway/switch-testsae89032Switch to upstream html5lib-tests- 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)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)