Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path-to-regexp GHSA-9wv6-86v2-598j #5355

Closed
Harvey1976 opened this issue Sep 10, 2024 · 8 comments
Closed

path-to-regexp GHSA-9wv6-86v2-598j #5355

Harvey1976 opened this issue Sep 10, 2024 · 8 comments
Assignees

Comments

@Harvey1976
Copy link

在此输入你需要反馈的 Bug 具体信息(Bug in Detail):

-- [email protected] -- [email protected]
+-- @eggjs/[email protected]
| -- [email protected] -- [email protected]
`-- [email protected] deduped

GHSA-9wv6-86v2-598j

can we upgrade the related path-to-regexp to patched version (8.0.0)

可复现问题的仓库地址(Reproduction Repo)

https:/eggjs/egg-router/blob/master/package.json
https:/eggjs/egg-path-matching/blob/master/package.json

Node 版本号:

18.17

Eggjs 版本号:

3.27.1

相关插件名称与版本号(PlugIn and Name):

@eggjs/router && egg-path-matching

操作平台与版本号(Platform and Version):

redhat linux ubi 8

@fengmk2 fengmk2 self-assigned this Sep 10, 2024
@fengmk2
Copy link
Member

fengmk2 commented Sep 10, 2024

https:/pillarjs/path-to-regexp/blob/master/History.md 改动好大,没法直接升级 major 版本

@Harvey1976
Copy link
Author

跪求,我们现在用了egg的框架,但是因为这个CVE已经影响了 release了,我们是一个k8s 产品中的一个pod。估计这个release可以混一混或许能过去,但是如果一直不修,下个release就死定了

@Harvey1976
Copy link
Author

path to regexp 是个很底层的库,感觉是个web app/ resetapi app都会有用到

@fengmk2
Copy link
Member

fengmk2 commented Sep 10, 2024

我先看看怎么在现有版本上修复

@Harvey1976
Copy link
Author

感谢

@fengmk2
Copy link
Member

fengmk2 commented Sep 10, 2024

https://blakeembrey.com/posts/2024-09-web-redos/ 按作者的 blog 描述,目前这个不好修复,我们使用的是 1.x 分支,官方也没有修复 pillarjs/path-to-regexp#318

@fengmk2
Copy link
Member

fengmk2 commented Sep 10, 2024

@Harvey1976 你可以使用 https://makenowjust-labs.github.io/recheck/playground/ 来检查你的路由配置是否命中规则。

@fengmk2
Copy link
Member

fengmk2 commented Sep 11, 2024

pillarjs/path-to-regexp#320 最新的 1.9.0 已经修复。

@fengmk2 fengmk2 closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants