OSV 1.4.0 · github-reviewed · 修改于 2025-12-02 23:11
发布时间
2025-12-02 02:59
GitHub 审查时间
2025-12-02 02:59
NVD 发布时间
2025-12-02 05:15
源文件
advisories/github-reviewed/2025/12/GHSA-pj86-cfqh-vqx6/GHSA-pj86-cfqh-vqx6.json
该公告已于 2025-12-02 23:11 撤回
内容仅用于保留外部引用,请不要将其当作仍然有效的安全结论。
This advisory has been withdrawn because it describes a correctness bug, not a vulnerability with real security impact. This link is maintained to preserve external references.
when using the extended query parser in express ('query parser': 'extended'), the request.query object inherits all object prototype properties, but these properties can be overwritten by query string parameter keys that match the property names
[!IMPORTANT]
the extended query parser is the default in express 4; this was changed in express 5 which by default uses the simple query parser
the issue has been patched to ensure request.query is a plain object so request.query no longer has object prototype properties. this brings the default behavior of extended query parsing in line with express's default simple query parser
this only impacts users using extended query parsing ('query parser': 'extended'), which is the default in express 4, but not express 5. all users are encouraged to upgrade to the patched versions, but can otherwise work around this issue:
qs directly and specify plainObjects: trueapp.set('query parser',
function (str) {
return qs.parse(str, {
plainObjects: true
});
});