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

4.2.0 pins axios, @xmldom/xmldom and mocha (serialize-javascript) to versions with high-severity advisories

未关闭 适合新手
#5,731 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, nodejs
领域
security

调研方向

检查 axios、@xmldom/xmldom 和 mocha/serialize-javascript 的依赖声明,然后在一个全新的项目中运行 npm audit,以确认报告的 advisories。使用经过验证的 Playwright helper 及其九个 E2E 场景进行回归检查;完成的标准是无需 overrides 即可使用已修复的依赖版本,并且这些场景仍然通过。

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

描述

[email protected] pins three dependencies to exact versions that have published high-severity advisories. Because the versions are exact, users cannot pick up the patched releases without overrides.

Dependency Pinned Patched Advisories (examples)
axios 1.16.1 1.20.0 GHSA-9fr6-4gfg-395g, GHSA-c29m-xwm3-cm6r, GHSA-mghh-pgcx-3jjj, GHSA-j8rh-479h-cp32 (and ~20 more fixed in 1.18–1.20)
@xmldom/xmldom 0.9.10 0.9.12 GHSA-6gmq-8vp8-gcm6, GHSA-g53g-w8rj-fmg7, GHSA-w2rr-34g9-rvrj, GHSA-c7q8-3ch8-vqpv
serialize-javascript (via [email protected]) 6.0.2 7.1.2 GHSA-5c6j-r48x-rmvq, GHSA-qj8w-gfj5-8c6v

npm audit on a fresh project with only [email protected] installed reports these as high.

Workaround we verified (Playwright helper, 9 E2E scenarios pass):

"overrides": {
  "axios": "^1.20.0",
  "@xmldom/xmldom": "^0.9.12",
  "serialize-javascript": "^7.1.2"
}

serialize-javascript 7's only breaking change is "requires Node.js 20+"; mocha 12 already depends on ^7.

Suggestion: bump axios and @xmldom/xmldom, and either move to mocha@12 or use caret ranges so patch releases flow through. Happy to send a PR if that helps.

主要语言
JavaScript
星标
4.2k
派生
755
平均合并
2 天 5 小时
30 天内合并 PR
27

环境准备

从这里开始

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

codeceptjs/CodeceptJS 的其他 Issue

查看 codeceptjs/CodeceptJS 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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