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

[Snyk] Upgrade parse5 from 7.0.0 to 7.1.2 #4

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

Conversation

Nahom1927
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade parse5 from 7.0.0 to 7.1.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.

  • The recommended version was released on 2 years ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Cross-site Request Forgery (CSRF)
SNYK-JS-AXIOS-6032459
676 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-AXIOS-6124857
676 Proof of Concept
critical severity Incomplete List of Disallowed Inputs
SNYK-JS-BABELTRAVERSE-5962462
676 Proof of Concept
high severity Uncontrolled resource consumption
SNYK-JS-BRACES-6838727
676 Proof of Concept
high severity Improper Input Validation
SNYK-JS-FOLLOWREDIRECTS-6141137
676 Proof of Concept
high severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
676 No Known Exploit
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
676 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-WS-7266574
676 Proof of Concept
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
676 No Known Exploit
medium severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-6444610
676 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-HTTPCACHESEMANTICS-3248783
676 Proof of Concept
medium severity Missing Release of Resource after Effective Lifetime
SNYK-JS-INFLIGHT-6095116
676 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SIDEWAYFORMULA-3317169
676 No Known Exploit
medium severity Undesired Behavior
SNYK-JS-STYLEDCOMPONENTS-3149924
676 No Known Exploit
medium severity Prototype Pollution
SNYK-JS-XML2JS-5414874
676 Proof of Concept
Release notes
Package name: parse5
  • 7.1.2 - 2022-11-20

    This release includes parse5 and parse5-parser-stream.

    Full Changelog: v7.1.0...v7.1.2

  • 7.1.1 - 2022-09-02
  • 7.1.0 - 2022-09-02

    This release is only for the parse5 module.

    What's Changed

    New Contributors

    Full Changelog: v7.0.0...v7.1.0

  • 7.0.0 - 2022-04-20

    Welcome to parse5@7.0.0! ✨ This is a huge release with many changes, features and fixes.

    From an organisational perspective, the most important change is that parse5 is now maintained by a team, consisting of James (@ 43081j), Titus (@ wooorm) and me (@ fb55). We come from three projects that rely on parse5 — namely Cheerio, rehype, and Lit.

    We need your support to continue the project! If you care about parse5, please support us financially on OpenCollective.

    Headlining features of this release are ES Modules, TypeScript, and performance improvements: 7.0.0 is 45% faster than 6.0.1 with default options, and 167% faster with location information enabled (for the bench/perf benchmark, on an M1 Mac). Version 7.0.0 is a revamp of every part of the library. There are too many changes to list them all here, so here is a high-level overview:

    Breaking: ESM

    All of parse5’s packages are now ECMAScript Modules. We are providing dual packages for parse5 and parse5-htmlparser2-tree-adapter for now (see #418 and #496).

    To migrate, please read this Gist on how to update. Note that private internals are no longer available; instead, everything that you need should be imported from the main package.

    Implemented by @ 43081j in #351

    Breaking: TypeScript

    The codebase has been ported to TypeScript. This helped uncover a number of subtle logic bugs, such as dc4e269, b4b5d4a, or a0aff95. TypeScript also helps us refactor with confidence and a lot of the changes in this release would have been much harder to do without it.

    To migrate, please remove @ types/parse5* as we now ship our own types.

    Implemented by @ fb55 in #362

    Potentially breaking changes

    • parse5 was caught up with the HTML spec, and parsing results might differ in edge-cases (#442, #451)
    • The parse5-serializer-stream package was removed #481
      • To migrate, use the serialize function exported by parse5.
    • The rewriting stream now splits very long text sections (#434) and doesn’t escape text in special tags anymore (#434). If you worked around these issues before, you might have to update your code.
    • The htmlparser2 adapter now uses domhandler’s node interface (#327 by @ TrySound)
      • The format of the tree nodes has changed slightly; eg. some previous properties are now getters and setters, and vice versa.

    If you are using deep imports for any parts of the codebase, you will likely encounter some breakages:

    Show internal changes
    • The tokenizer now uses the state machine pattern from htmlparser2 5d7a780 (#362)
    • The token queue was replaced with callbacks (#404, #405, #419)
    • The OpenElementStack now uses callbacks #429
    • Mixins were removed (as part of #362)
      • Location tracking now has a substantially lower overhead #402
    • getNextToken was removed #461
    • The parser’s _bootstrap method was removed #384
    • We now drop chunks from the tokenizer right after they are emitted #432
    • The serializer is no longer a class; instead, different serializer functions call on each other #383
    • parse5 now uses the entities module for encoding and decoding entities, sharing maintenance & optimisation work with projects such as htmlparser2 (2b92054 (#362), #486)
      • entities adopted a variant of parse5’s approach of decoding entities. As a result, decoding performance is equivalent, while memory consumption is slightly lower.

    Other changes

    • minor add hooks for stack events to tree adapter interface #385
    • minor add support for fragments in parse5-parser-stream #487
    • minor add serializeOuter (like .outerHTML), scriptingEnabled option #383
    • patch fix parsing of << in comments parsed wrongly as <! (#326)
    • patch fix position of endTag for mixed-case foreign elements (#353)
    • patch fix end position of html, body (#436)
    • docs: parse5 has a new documentation website at parse5.js.org #443

    New Contributors

    Thanks @ anko, @ TrySound, @ samouri, @ alan-agius4, and @ pmdartus!

    Full Changelog: v6.0.1...v7.0.0

from parse5 GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade parse5 from 7.0.0 to 7.1.2.

See this package in npm:
parse5

See this project in Snyk:
https://app.snyk.io/org/yheys898184/project/9bd94c45-bcfa-45e9-a8ac-e291934f3c5f?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants