compiled fast-glob bundles an outdated picomatch
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- build-system, security
Hướng nghiên cứu
Bắt đầu từ pnpm-lock.yaml, nơi picomatch được ghim ở phiên bản 2.3.1 dưới micromatch, và từ compiled/fast-glob/index.js, tệp bundle được sinh ra. Nâng picomatch lên 2.3.2 trong lockfile, sau đó chạy pnpm prebundle để tái tạo bundle. Hoàn thành khi bundle chứa splitTopLevel và DEFAULT_MAX_EXTGLOB_RECURSION, và lockfile phân giải picomatch 2.3.2.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi, [email protected] (current latest) ships compiled/fast-glob/index.js, prebundle's own ncc build of fast-glob 3.3.3, which dist/index.js imports. That build inlines micromatch 4.0.8 with picomatch 2.3.1. pnpm-lock.yaml on main still resolves [email protected] → [email protected] → [email protected], and the committed compiled/fast-glob was last regenerated on 2025-10-28 ("chore: update compiled packages").
picomatch 2.3.1 is covered by two published advisories (list below), both fixed in 2.3.2. fast-glob is only a devDependency and picomatch is not declared at all, so npm audit and SCA tools cannot see this copy, for you or for projects that install prebundle.
Suggested fix: update picomatch in pnpm-lock.yaml to 2.3.2 (within micromatch's ^2.3.1), run pnpm prebundle to regenerate compiled/fast-glob, and publish.
Static reproduction (2026-11-25):
npm pack [email protected] && tar xzf prebundle-1.6.5.tgzgrep -c 'const picomatch = (glob, options, returnState = false)' package/compiled/fast-glob/index.js→1(picomatch 2.x entry point)grep -c 'splitTopLevel' package/compiled/fast-glob/index.js→0(extglob guard added in 2.3.2)grep -c 'DEFAULT_MAX_EXTGLOB_RECURSION' package/compiled/fast-glob/index.js→0(constant added in 2.3.2)
Advisories
picomatch 2.3.1:
- CVE-2026-33671 / GHSA-c2c7-rcm5-vvqj: ReDoS via extglob quantifiers (fixed 2.3.2)
- CVE-2026-33672 / GHSA-3v7f-55p6-f55p: method injection in POSIX character classes causes incorrect glob matching (fixed 2.3.2)
- Ngôn ngữ chính
- JavaScript
- Star
- 28
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rstackjs/prebundle
-
Dependency DashboardĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của rstackjs/prebundle
Issue tương tự
-
[Bug] check:changed and deslop report a missing oxlint report on Windows instead of running oxlintĐang mởbug platform:windows root-cause:found
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openchamber/openchamber#7619 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
JoahanMorales/upiixia-agentic-kit#99 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
mine-cetinkaya-rundel/quarto-tdg#66 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày