MetaMask / MetaMask/metamask-extension

[Medium] Race Condition in metamask-extension

Open
#39,831 0 comments 0 reactions 0 assignees View on GitHub
external-contributor INVALID-ISSUE-TEMPLATE
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

## Bug Report

**Type**: Race Condition
**Severity**: Medium
**File**: src/concurrent/metamask-extension.go:189

### Description
多个线程同时访问共享变量时缺乏同步机制。

### Impact
可能导致数据不一致或程序崩溃。

### Proposed Fix
使用mutex保护共享变量。

---
Automated Bug Report - 2026-02-05

Contributor guide

Open the contributing guide

Research direction

Start by checking whether src/concurrent/metamask-extension.go:189 exists, then inspect the shared-variable access described in the report. Confirm the race condition and define completion as synchronized access with a regression check covering the affected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, typescript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.