Skip to content

[Snyk] Upgrade @babel/parser from 7.1.3 to 7.27.0 #243

New issue

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

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

Already on GitHub? # to your account

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

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Apr 20, 2025

Sweep Summary Sweep

Refactors Node.js module initialization by extracting CommonJS setup into a dedicated function to improve code organization and maintainability.

  • Added new setupUserModules() function in lib/internal/bootstrap/node.js to better organize the module loading process.
  • Created initializeCJS() in lib/internal/modules/cjs/loader.js to encapsulate CommonJS module system initialization.
  • Updated lib/internal/process/pre_execution.js to use the new initialization function, improving code modularity.
  • Added test case in test/parallel/test-process-env.js to ensure process.env is properly accessible during module initialization.

Ask Sweep AI questions about this PR

snyk-top-banner

Snyk has created this PR to upgrade @babel/parser from 7.1.3 to 7.27.0.

ℹ️ 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 185 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Prototype Pollution
SNYK-JS-AJV-584908
165 No Known Exploit
high severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
165 No Known Exploit
critical severity Incomplete List of Disallowed Inputs
SNYK-JS-BABELTRAVERSE-5962462
165 Proof of Concept
high severity Excessive Platform Resource Consumption within a Loop
SNYK-JS-BRACES-6838727
165 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
165 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-DECODEURICOMPONENT-3149970
165 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-HAWK-2808852
165 No Known Exploit
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
165 Proof of Concept
high severity Prototype Pollution
SNYK-JS-UNSETVALUE-2400660
165 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-GLOBPARENT-1016905
165 Proof of Concept
critical severity Authentication Bypass
SNYK-JS-HAWK-6969142
165 Proof of Concept
high severity Prototype Poisoning
SNYK-JS-QS-3153490
165 Proof of Concept
medium severity Insecure Randomness
npm:cryptiles:20180710
165 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
165 Proof of Concept
Release notes
Package name: @babel/parser
  • 7.27.0 - 2025-03-24

    v7.27.0 (2025-03-24)

    Thanks @ ishchhabra and @ vovkasm for your first PRs!

    👓 Spec Compliance

    • babel-generator, babel-parser

    🚀 New Feature

    • babel-helper-create-class-features-plugin, babel-traverse, babel-types
    • babel-parser, babel-types
      • #17110 Add ImportAttributes to Standardized and move its parser test fixtures (@ JLHwung)
    • babel-generator
      • #17100 fix(babel-generator): add named export of generate function (@ vovkasm)
    • babel-parser, babel-template
    • babel-plugin-transform-typescript, babel-traverse
    • babel-parser
    • babel-types
      • #17162 feat(babel-types): Add support for BigInt literal conversion in valueToNode (@ ishchhabra)

    🐛 Bug Fix

    • babel-helper-create-class-features-plugin, babel-plugin-transform-class-properties
    • babel-traverse
    • babel-helpers, babel-preset-typescript, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
      • #17118 Fix: align behaviour to tsc rewriteRelativeImportExtensions (@ JLHwung)
    • babel-cli
    • babel-plugin-transform-named-capturing-groups-regex, babel-types

    🏃‍♀️ Performance

    • babel-types
    • babel-helper-create-regexp-features-plugin

    Committers: 5

  • 7.26.10 - 2025-03-11

    v7.26.10 (2025-03-11)

    Thanks @ jordan-choi and @ mmmsssttt404 for your first PRs!

    This release includes a fix for GHSA-968p-4wvh-cqc8, a security vulnerability which affects the .replace method of transpiled regular expressions that use named capturing groups.

    👓 Spec Compliance

    🐛 Bug Fix

    • babel-parser, babel-template
    • babel-core
    • babel-parser, babel-plugin-transform-typescript
    • babel-traverse
    • babel-generator
    • babel-parser
    • babel-helpers, babel-runtime, babel-runtime-corejs2, babel-runtime-corejs3

    💅 Polish

    • babel-standalone

    🏠 Internal

    Committers: 6

  • 7.26.9 - 2025-02-14

    v7.26.9 (2025-02-14)

    🐛 Bug Fix

    🏠 Internal

    Committers: 5

  • 7.26.8 - 2025-02-08

    v7.26.8 (2025-02-08)

    🏠 Internal

    • babel-preset-env
      • #17097 Update dependency babel-plugin-polyfill-corejs3 to ^0.11.0
  • 7.26.7 - 2025-01-24

    v7.26.7 (2025-01-24)

    Thanks @ branchseer and @ tquetano-netflix for your first PRs!

    🐛 Bug Fix

    • babel-helpers, babel-preset-env, babel-runtime-corejs3
    • babel-plugin-transform-typeof-symbol
    • babel-parser
    • babel-core
    • babel-plugin-transform-typescript
    • babel-plugin-transform-typescript, babel-traverse, babel-types

    Committers: 6

  • 7.26.5 - 2025-01-10

    v7.26.5 (2025-01-10)

    👓 Spec Compliance

    • babel-parser

    🐛 Bug Fix

    • babel-plugin-transform-block-scoped-functions
    • babel-plugin-transform-typescript
    • babel-parser
    • babel-generator, babel-parser, babel-plugin-transform-flow-strip-types, babel-types
    • babel-compat-data, babel-preset-env
    • babel-generator, babel-parser, babel-types

    🔬 Output optimization

    • babel-plugin-transform-nullish-coalescing-operator

    Committers: 5

  • 7.26.3 - 2024-12-04
  • 7.26.2 - 2024-10-30
  • 7.26.1 - 2024-10-25
  • 7.26.0 - 2024-10-25
  • 7.25.9 - 2024-10-22
  • 7.25.8 - 2024-10-10
  • 7.25.7 - 2024-10-02
  • 7.25.6 - 2024-08-29
  • 7.25.4 - 2024-08-22
  • 7.25.3 - 2024-07-31
  • 7.25.0 - 2024-07-26
  • 7.24.8 - 2024-07-11
  • 7.24.7 - 2024-06-05
  • 7.24.6 - 2024-05-24
  • 7.24.5 - 2024-04-29
  • 7.24.4 - 2024-04-03
  • 7.24.1 - 2024-03-19
  • 7.24.0 - 2024-02-28
  • 7.23.9 - 2024-01-25
  • 7.23.6 - 2023-12-11
  • 7.23.5 - 2023-11-29
  • 7.23.4 - 2023-11-20
  • 7.23.3 - 2023-11-09
  • 7.23.0 - 2023-09-25
  • 7.22.16 - 2023-09-06
  • 7.22.15 - 2023-09-04
  • 7.22.14 - 2023-08-30
  • 7.22.13 - 2023-08-28
  • 7.22.11 - 2023-08-24
  • 7.22.10 - 2023-08-07
  • 7.22.7 - 2023-07-06
  • 7.22.6 - 2023-07-04
  • 7.22.5 - 2023-06-08
  • 7.22.4 - 2023-05-29
  • 7.22.3 - 2023-05-27
  • 7.22.0 - 2023-05-26
  • 7.21.9 - 2023-05-22
  • 7.21.8 - 2023-05-02
  • 7.21.5 - 2023-04-28
  • 7.21.4 - 2023-03-31
  • 7.21.4-esm.4 - 2023-04-04
  • 7.21.4-esm.3 - 2023-04-04
  • 7.21.4-esm.2 - 2023-04-04
  • 7.21.4-esm.1 - 2023-04-04
  • 7.21.4-esm - 2023-04-04
  • 7.21.3 - 2023-03-14
  • 7.21.2 - 2023-02-23
  • 7.21.1 - 2023-02-20
  • 7.21.0 - 2023-02-20
  • 7.20.15 - 2023-02-02
  • 7.20.13 - 2023-01-21
  • 7.20.7 - 2022-12-22
  • 7.20.5 - 2022-11-28
  • 7.20.3 - 2022-11-07
  • 7.20.2 - 2022-11-04
  • 7.20.1 - 2022-11-01
  • 7.20.0 - 2022-10-27
  • 7.19.6 - 2022-10-20
  • 7.19.4 - 2022-10-10
  • 7.19.3 - 2022-09-27
  • 7.19.1 - 2022-09-14
  • 7.19.0 - 2022-09-05
  • 7.18.13 - 2022-08-22
  • 7.18.11 - 2022-08-04
  • 7.18.10 - 2022-08-01
  • 7.18.9 - 2022-07-18
  • 7.18.8 - 2022-07-08
  • 7.18.6 - 2022-06-27
  • 7.18.5 - 2022-06-13
  • 7.18.4 - 2022-05-29
  • 7.18.3 - 2022-05-25
  • 7.18.0 - 2022-05-19
  • 7.17.12 - 2022-05-16
  • 7.17.10 - 2022-04-29
  • 7.17.9 - 2022-04-06
  • 7.17.8 - 2022-03-18
  • 7.17.7 - 2022-03-14
  • 7.17.3 - 2022-02-15
  • 7.17.0 - 2022-02-02
  • 7.16.12 - 2022-01-22
  • 7.16.10 - 2022-01-19
  • 7.16.8 - 2022-01-10
  • 7.16.7 - 2021-12-31
  • 7.16.6 - 2021-12-14
  • 7.16.5 - 2021-12-13
  • 7.16.4 - 2021-11-16
  • 7.16.3 - 2021-11-09
  • 7.16.2 - 2021-11-01
  • 7.16.0 - 2021-10-29
  • 7.15.8 - 2021-10-06
  • 7.15.7 - 2021-09-17
  • 7.15.6 - 2021-09-09
  • 7.15.5 - 2021-09-04
  • 7.15.4 - 2021-09-02
  • 7.15.3 - 2021-08-11
  • 7.15.2 - 2021-08-08
  • 7.15.0 - 2021-08-04
  • 7.14.9 - 2021-08-01
  • 7.14.8 - 2021-07-20
  • 7.14.7 - 2021-06-21
  • 7.14.6 - 2021-06-14
  • 7.14.5 - 2021-06-09
  • 7.14.4 - 2021-05-28
  • 7.14.3 - 2021-05-17
  • 7.14.2 - 2021-05-12
  • 7.14.1 - 2021-05-04
  • 7.14.0 - 2021-04-29
  • 7.13.16 - 2021-04-20
  • 7.13.15 - 2021-04-08
  • 7.13.13 - 2021-03-26
  • 7.13.12 - 2021-03-22
  • 7.13.11 - 2021-03-15
  • 7.13.10 - 2021-03-08
  • 7.13.9 - 2021-03-01
  • 7.13.4 - 2021-02-23
  • 7.13.0 - 2021-02-22
  • 7.12.17 - 2021-02-18
  • 7.12.16 - 2021-02-11
  • 7.12.15 - 2021-02-04
  • 7.12.14 - 2021-02-03
  • 7.12.13 - 2021-02-03
  • 7.12.11 - 2020-12-15
  • 7.12.10 - 2020-12-09
  • 7.12.7 - 2020-11-20
  • 7.12.5 - 2020-11-03
  • 7.12.3 - 2020-10-16
  • 7.12.2 - 2020-10-16
  • 7.12.1 - 2020-10-15
  • 7.12.0 - 2020-10-14
  • 7.11.5 - 2020-08-31
  • 7.11.4 - 2020-08-20
  • 7.11.3 - 2020-08-08
  • 7.11.2 - 2020-08-05
  • 7.11.1 - 2020-08-04
  • 7.11.0 - 2020-07-30
  • 7.10.5 - 2020-07-14
  • 7.10.4 - 2020-06-30
  • 7.10.3 - 2020-06-19
  • 7.10.2 - 2020-05-30
  • 7.10.1 - 2020-05-27
  • 7.10.0 - 2020-05-26
  • 7.9.6 - 2020-04-29
  • 7.9.4 - 2020-03-24
  • 7.9.3 - 2020-03-22
  • 7.9.2 - 2020-03-21
  • 7.9.0 - 2020-03-20
  • 7.8.8 - 2020-03-12
  • 7.8.7 - 2020-03-05
  • 7.8.6 - 2020-02-27
  • 7.8.4 - 2020-01-30
  • 7.8.3 - 2020-01-13
  • 7.8.0 - 2020-01-12
  • 7.7.7 - 2019-12-19
  • 7.7.5 - 2019-12-06
  • 7.7.4 - 2019-11-22
  • 7.7.3 - 2019-11-08
  • 7.7.2 - 2019-11-06
  • 7.7.0 - 2019-11-05
  • 7.6.4 - 2019-10-10
  • 7.6.3 - 2019-10-08
  • 7.6.2 - 2019-09-23
  • 7.6.0 - 2019-09-06
  • 7.5.5 - 2019-07-17
  • 7.5.0 - 2019-07-04
  • 7.4.5 - 2019-05-21
  • 7.4.4 - 2019-04-26
  • 7.4.3 - 2019-04-02
  • 7.4.2 - 2019-03-21
  • 7.4.0 - 2019-03-19
  • 7.3.4 - 2019-02-25
  • 7.3.3 - 2019-02-15
  • 7.3.2 - 2019-02-04
  • 7.3.1 - 2019-01-22
  • 7.3.0 - 2019-01-21
  • 7.2.3 - 2018-12-20
  • 7.2.2 - 2018-12-15
  • 7.2.0 - 2018-12-03
  • 7.1.6 - 2018-11-13
  • 7.1.5 - 2018-11-06
  • 7.1.3 - 2018-10-11
from @babel/parser 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 @babel/parser from 7.1.3 to 7.27.0.

See this package in npm:
@babel/parser

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/5c08c7f3-e081-4b45-bb54-aed4a1afcddf?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Apr 20, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the @babel/parser dependency from version 7.1.3 to 7.27.0 in package.json. This upgrade addresses multiple security vulnerabilities.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
The pull request upgrades the @babel/parser dependency.
  • Upgraded @babel/parser from version 7.1.3 to 7.27.0.
deps/v8/tools/clusterfuzz/js_fuzzer/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants