compiled fast-glob bundles an outdated picomatch

Đang mở Phù hợp với người mới
#104 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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):

  1. npm pack [email protected] && tar xzf prebundle-1.6.5.tgz
  2. grep -c 'const picomatch = (glob, options, returnState = false)' package/compiled/fast-glob/index.js → 1 (picomatch 2.x entry point)
  3. grep -c 'splitTopLevel' package/compiled/fast-glob/index.js → 0 (extglob guard added in 2.3.2)
  4. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rstackjs/prebundle

Tất cả issue của rstackjs/prebundle

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.