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

V12.3.0 fixed #26974

Merged
merged 11 commits into from
Sep 11, 2024
Merged

V12.3.0 fixed #26974

merged 11 commits into from
Sep 11, 2024

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Sep 6, 2024

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@danjm danjm changed the base branch from develop to Version-v12.2.0 September 6, 2024 19:20
@danjm
Copy link
Contributor Author

danjm commented Sep 6, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policy update failed. You can review the logs or retry the policy update here

Copy link

socket-security bot commented Sep 9, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@leichtgewicht/[email protected] None 0 17.7 kB leichtgewicht
npm/@lydell/[email protected] None 0 136 kB lydell
npm/@lydell/[email protected] None 0 103 kB lydell
npm/@lydell/[email protected] None 0 76.3 kB lydell
npm/@lydell/[email protected] None 0 10.5 MB lydell
npm/@lydell/[email protected] None 0 10.9 MB lydell
npm/@lydell/[email protected] environment, filesystem, network, shell 0 58.8 kB lydell
npm/@mantine/[email protected] None 0 10.7 MB rtivital
npm/@mantine/[email protected] environment, network 0 1.02 MB rtivital
npm/@metamask/[email protected] None 0 238 kB metamaskbot
npm/@metamask/[email protected] None 0 1.68 MB metamaskbot
npm/@metamask/[email protected] None 0 122 kB metamaskbot
npm/@metamask/[email protected] None 0 507 kB metamaskbot
npm/@metamask/[email protected] None 0 84.6 kB metamaskbot
npm/@metamask/[email protected] None 0 127 kB metamaskbot
npm/@metamask/[email protected] network 0 668 kB metamaskbot
npm/@metamask/[email protected] None 0 221 kB metamaskbot
npm/@metamask/[email protected] network 0 187 kB metamaskbot
npm/@metamask/[email protected] Transitive: environment, filesystem, network +28 9.39 MB danfinlay, gudahtt, kumavis, ...8 more
npm/@metamask/[email protected] None 0 5.64 MB metamaskbot
npm/@metamask/[email protected] None 0 993 kB metamaskbot
npm/@metamask/[email protected] network 0 867 kB metamaskbot
npm/@metamask/[email protected] network 0 1.1 MB metamaskbot
npm/@metamask/[email protected] network 0 1.8 MB metamaskbot
npm/@metamask/[email protected] network 0 505 kB metamaskbot
npm/@stablelib/[email protected] None 0 103 kB dchest
npm/@stablelib/[email protected] None 0 13.2 kB dchest
npm/@stablelib/[email protected] None 0 33.3 kB dchest
npm/@stablelib/[email protected] None 0 7.06 kB dchest
npm/@swc/[email protected] None 0 38.3 MB kdy1
npm/@swc/[email protected] None 0 40.7 MB kdy1
npm/@swc/[email protected] None 0 25.2 MB kdy1
npm/@swc/[email protected] None 0 43.7 MB kdy1
npm/@swc/[email protected] None 0 55.5 MB kdy1
npm/@swc/[email protected] None 0 49.7 MB kdy1
npm/@swc/[email protected] None 0 62.1 MB kdy1
npm/@swc/[email protected] None 0 33.8 MB kdy1
npm/@swc/[email protected] None 0 27.7 MB kdy1
npm/@swc/[email protected] None 0 52.9 MB kdy1
npm/@swc/[email protected] environment, filesystem, shell 0 211 kB kdy1
npm/@swc/[email protected] None 0 229 kB kdy1
npm/@types/[email protected] None 0 5.57 kB types
npm/@types/[email protected] None 0 698 kB types
npm/@types/[email protected] None 0 4.86 kB types
npm/@types/[email protected] None 0 44.9 kB types
npm/@types/[email protected] None 0 7.86 kB types
npm/@types/[email protected] None 0 24.9 kB types
npm/@types/[email protected] None 0 8.34 kB types
npm/@types/[email protected] None 0 32.4 kB types
npm/@types/[email protected] None 0 6.59 kB types
npm/@types/[email protected] None 0 14.4 kB types
npm/@types/[email protected] None 0 63.1 kB types
npm/@types/[email protected] None 0 4.26 kB types
npm/@types/[email protected] None 0 7.91 kB types
npm/@types/[email protected] None 0 4.71 kB types
npm/@types/[email protected] None 0 7.77 kB types
npm/@types/[email protected] None 0 5.35 kB types
npm/@types/[email protected] None 0 21.7 kB types
npm/@types/[email protected] None 0 8.65 kB types
npm/@welldone-software/[email protected] None 0 332 kB vzaidman
npm/[email protected] None 0 43.1 kB webdiscus
npm/[email protected] filesystem 0 1.46 MB ldthomas
npm/[email protected] None 0 7.29 kB dougwilson
npm/[email protected] None 0 66.2 kB mdidon
npm/[email protected] None 0 91.3 kB feross
npm/[email protected] environment, filesystem, network 0 493 kB jakub.pawlowicz
npm/[email protected] None 0 10.2 kB bripkens
npm/[email protected] environment, eval, filesystem 0 1.1 MB zloirock
npm/[email protected] None 0 16.1 kB silverwind
npm/[email protected] None 0 61 kB silverwind
npm/[email protected] None 0 773 kB 101arrowz
npm/[email protected] None 0 12.1 kB indutny
npm/[email protected] None 0 86.9 kB indutny
npm/[email protected] environment, filesystem, unsafe 0 636 kB webdiscus
npm/[email protected] None 0 287 kB mdevils
npm/[email protected] None 0 13.9 kB indutny
npm/[email protected] None 0 25.8 kB jimbly
npm/[email protected] network 0 64.1 kB chimurai
npm/[email protected] network 0 232 kB jcrugzz
npm/[email protected] None 0 4.87 kB sindresorhus
npm/[email protected] None 0 4.5 kB sindresorhus
npm/[email protected] environment, filesystem, unsafe 0 1.91 MB pi0
npm/[email protected] None 0 119 kB thomasaribart
npm/[email protected] environment, filesystem, shell 0 14.2 kB soda
npm/[email protected] network 0 22 kB mafintosh
npm/[email protected] None 0 1.66 MB davidlehn
npm/[email protected] None 0 19.1 kB indutny
npm/[email protected] None 0 13.2 kB sindresorhus
npm/[email protected] eval, unsafe 0 52.1 kB evilebottnawi
npm/[email protected] environment, filesystem 0 277 kB isaacs
npm/[email protected] environment 0 56.3 kB evilebottnawi
npm/[email protected] environment 0 71.6 kB evilebottnawi
npm/[email protected] None 0 15.4 kB indutny
npm/[email protected] None 0 25.4 kB jfromaniello
npm/[email protected] filesystem, network 0 93.4 kB dougwilson
npm/[email protected] None 0 85.7 kB sbihel
npm/[email protected] filesystem, network 0 82.8 kB brycekahle
npm/[email protected] None 0 136 kB daviddias
npm/[email protected] network 0 57.7 kB indutny
npm/[email protected] None 0 26.8 kB jhiesey
npm/[email protected] None 0 7.76 kB mafintosh
npm/[email protected] None 0 100 kB thomasaribart
npm/[email protected] None 0 20.9 kB indutny
npm/[email protected] environment, eval, network 0 530 kB evilebottnawi
npm/[email protected] network 0 67.4 kB jcoglan

🚮 Removed packages: npm/@mantine/[email protected], npm/@mantine/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Sep 9, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Shell access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/@lydell/[email protected] 🚫
Shell access npm/@lydell/[email protected] 🚫
Network access npm/@metamask/[email protected] 🚫
Network access npm/@metamask/[email protected] 🚫

View full report↗︎

Next steps

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@danjm
Copy link
Contributor Author

danjm commented Sep 9, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policy update failed. You can review the logs or retry the policy update here

Base automatically changed from Version-v12.2.0 to master September 9, 2024 14:57
@danjm
Copy link
Contributor Author

danjm commented Sep 9, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@danjm danjm changed the base branch from master to Version-v12.2.2 September 10, 2024 16:26
@danjm danjm force-pushed the v12.3.0-fixed branch 2 times, most recently from 80744c4 to 3967519 Compare September 10, 2024 16:43
Base automatically changed from Version-v12.2.2 to master September 10, 2024 18:58
danjm and others added 6 commits September 11, 2024 10:16
## **Description**

This addresses the following `yarn audit` failure:

```
└─ path-to-regexp
   ├─ ID: 1099496
   ├─ Issue: path-to-regexp outputs backtracking regular expressions
   ├─ URL: GHSA-9wv6-86v2-598j
   ├─ Severity: high
   ├─ Vulnerable Versions: >=0.2.0 <8.0.0
   │ 
   ├─ Tree Versions
   │  └─ 1.7.0
   │ 
   └─ Dependents
      └─ react-router@npm:5.1.2 [12b72]
```

path-to-Regexp is used in two files within react-router v5.1.2:
`generatePath.js` and `matchPath.js`. In both cases, `path` and
`options` variables are passed to a `compilePath` function. Those are
then passed to `pathtoRegexp`. The variables passed to `pathtoRegexp`
are dependent on props or parameters passed to react-router components
and/or methods explictly from the metamask code. So this vulnerability
cannot be exploited by an external actor.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27024?quickstart=1)

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
## **Description**

Follow up to #27024.
Since that was merged, an update was made to
#27024, and so the
yarn audit warning now has a new id, which we need to include in the
`npmAuditIgnoreAdvisories` config.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27041?quickstart=1)

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
## **Description**

Follow up to #27024
and #27041

The id has changed again, so we are going to try updating one more time.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27044?quickstart=1)

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Follow-up of:
- #26929

The previous PR did unblock the CI quickly but relying on a external
network call might still have side-effects, thus it's preferable to hook
all network calls.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26941?quickstart=1)

Relates to:
- #26929

1. `yarn build:test:flask`
2. `yarn test:e2e:single
test/e2e/flask/btc/btc-account-overview.spec.ts`

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
@danjm danjm marked this pull request as ready for review September 11, 2024 16:44
@danjm danjm changed the base branch from master to Version-v12.3.0 September 11, 2024 16:45
@danjm danjm requested a review from a team as a code owner September 11, 2024 16:45
@danjm danjm merged commit 34cf07d into Version-v12.3.0 Sep 11, 2024
72 of 74 checks passed
@danjm danjm deleted the v12.3.0-fixed branch September 11, 2024 16:46
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [439f7d6]
Page Load Metrics (1740 ± 71 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15662107175215474
domContentLoaded15492044170812962
load15652108174014871
domInteractive137745178

@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Sep 26, 2024
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-12.3.0 on PR, as PR was added to branch 12.3.0 when release was cut.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants