Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

es5-ext dependency is quarantined by Nexus Firewall, blocking hermetic builds

已关闭 适合新手
#7,788 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
typescript, vscode

调研方向

从 lib/vscode/package.json 开始,跟踪列出的依赖链,以确认 es5-ext 是如何解析的。应用 issue 中描述的 dependency override,然后运行 hermetic 或 hardened 的依赖获取构建,以验证不再请求被隔离的 package。

由索引模型根据 Issue 内容生成。

描述

bug code-server needs-investigation

Problem

The es5-ext npm package (both 0.10.63 and 0.10.64) has been quarantined by Nexus Firewall under advisory sonatype-2022-2248. Its _postinstall.js script makes network calls to geolocate the host and executes undisclosed code (classified as protestware). Both versions are flagged; there is no clean upstream version.

This blocks any hermetic/hardened supply chain build that prefetches npm dependencies through an artifact registry proxy, resulting in:

FetchError: 403, message='--- Requested item is quarantined ---'
url='https://artifact-registry-proxy.../npm-proxy/es5-ext/-/es5-ext-0.10.63.tgz'

Dependency chain

es5-ext enters code-server through the VS Code submodule (lib/vscode/):

  • gulp-sourcemapsdebug-fabulousmemoizeees5-ext (build tooling, devDependency)
  • Also via d, es6-iterator, es6-symbol, es6-weak-map, esniff, event-emitter, timers-ext

Upstream status

Suggested fix

Add an npm overrides entry in lib/vscode/package.json to alias es5-ext to @unes/es5-ext, a community fork that strips the postinstall script and rebases daily against upstream:

"overrides": {
    "es5-ext": "npm:@unes/es5-ext@0.10.64-1"
}

We have implemented this fix in our downstream build at opendatahub-io/notebooks#3556.

主要语言
TypeScript
星标
79.4k
派生
6.9k
平均合并
2 天 13 小时
30 天内合并 PR
39

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/code-server 的其他 Issue

查看 coder/code-server 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。