Bump body-parser and express in /protected-api-access-protected-api
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(7 months ago)
(7 months ago)
dependencies
Bumps body-parser to 2.2.1 and updates ancestor dependency express. These dependencies need to be updated together.
Updates body-parser from 1.20.2 to 2.2.1
Release notes
Sourced from body-parser's releases.
v2.2.1
Important: Security
- Security fix for CVE-2025-13466 (GHSA-wqch-xfxh-vrr4)
What's Changed
- ci: add dependabot by
@Phillip9587in expressjs/body-parser#593- ci: use full SHAs for github action versions by
@Phillip9587in expressjs/body-parser#594- deps: type-is@^2.0.1 by
@Phillip9587in expressjs/body-parser#599- build(deps): bump actions/setup-node from 4.3.0 to 4.4.0 by
@dependabot[bot] in expressjs/body-parser#609- build(deps): bump github/codeql-action from 3.28.13 to 3.28.15 by
@dependabot[bot] in expressjs/body-parser#610- build(deps-dev): bump eslint-plugin-promise from 6.1.1 to 6.6.0 by
@dependabot[bot] in expressjs/body-parser#611- build(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.31.0 by
@dependabot[bot] in expressjs/body-parser#613- build(deps-dev): bump eslint-plugin-markdown from 3.0.0 to 3.0.1 by
@dependabot[bot] in expressjs/body-parser#612- ci: add codeql github workflows scanning by
@Phillip9587in expressjs/body-parser#614- ci: update CodeQL config to ignore the test directory by
@Phillip9587in expressjs/body-parser#615- build(deps): bump actions/download-artifact from 4.2.1 to 4.3.0 by
@dependabot[bot] in expressjs/body-parser#620- build(deps): bump github/codeql-action from 3.28.15 to 3.28.16 by
@dependabot[bot] in expressjs/body-parser#619- chore(deps): unpin devDependencies by
@Phillip9587in expressjs/body-parser#616- ci: add node.js 24 to test matrix by
@Phillip9587in expressjs/body-parser#621- build(deps): bump github/codeql-action from 3.28.16 to 3.28.18 by
@dependabot[bot] in expressjs/body-parser#623- build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 by
@dependabot[bot] in expressjs/body-parser#624- chore: add funding to package.json by
@Phillip9587in expressjs/body-parser#617- build(deps): bump github/codeql-action from 3.28.18 to 3.29.2 by
@dependabot[bot] in expressjs/body-parser#625- build(deps): bump github/codeql-action from 3.29.2 to 3.29.5 by
@dependabot[bot] in expressjs/body-parser#630- refactor: move common request validation to read function by
@Phillip9587in expressjs/body-parser#600- deps: bump iconv-lite by
@bjohansebasin expressjs/body-parser#631- doc: pull beta changelog forward into 2.0.0 by
@jonchurchin expressjs/body-parser#629- refactor: optimize raw and text parsers with shared passthrough function by
@Phillip9587in expressjs/body-parser#634- build(deps): bump actions/checkout from 4.2.2 to 5.0.0 by
@dependabot[bot] in expressjs/body-parser#640- build(deps): bump ossf/scorecard-action from 2.4.2 to 2.4.3 by
@dependabot[bot] in expressjs/body-parser#639- build(deps): bump actions/setup-node from 4.4.0 to 5.0.0 by
@dependabot[bot] in expressjs/body-parser#636- build(deps): bump actions/download-artifact from 4.3.0 to 5.0.0 by
@dependabot[bot] in expressjs/body-parser#637- build(deps): bump github/codeql-action from 3.29.7 to 3.30.5 by
@dependabot[bot] in expressjs/body-parser#638- deps: raw-body@^3.0.1 by
@Phillip9587in expressjs/body-parser#641- deps: debug@^4.4.3 by
@Phillip9587in expressjs/body-parser#642- docs: add iconv-lite 0.7.0 changes to history entry by
@Phillip9587in expressjs/body-parser#645- ci: add node.js 25 to test matrix by
@Phillip9587in expressjs/body-parser#650- perf: move read options outside parser middlewares by
@Phillip9587in expressjs/body-parser#648- test(json): add RFC 7159 whitespace edge cases by
@Ayoub-Mabroukin expressjs/body-parser#653- test: add test for urlencoded invalid defaultCharset by
@Phillip9587in expressjs/body-parser#643- build(deps): bump actions/download-artifact from 5.0.0 to 6.0.0 by
@dependabot[bot] in expressjs/body-parser#657- build(deps): bump github/codeql-action from 3.30.5 to 4.31.2 by
@dependabot[bot] in expressjs/body-parser#656- build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 by
@dependabot[bot] in expressjs/body-parser#655- build(deps): bump actions/setup-node from 5.0.0 to 6.0.0 by
@dependabot[bot] in expressjs/body-parser#654- ci: also test on first supported node.js version by
@Phillip9587in expressjs/body-parser#646- chore: switch badges from badgen.net to shields.io by
@Phillip9587in expressjs/body-parser#661- Remove history.md from being packaged on publish by
@bjohansebasin expressjs/body-parser#660- Release: 2.2.1 by
@UlisesGasconin expressjs/body-parser#659
... (truncated)
Changelog
Sourced from body-parser's changelog.
2.2.1 / 2025-11-24
- Security fix for GHSA-wqch-xfxh-vrr4
- deps:
- type-is@^2.0.1
- iconv-lite@^0.7.0
- Handle split surrogate pairs when encoding UTF-8
- Avoid false positives in
encodingExistsby using prototype-less objects- raw-body@^3.0.1
- debug@^4.4.3
2.2.0 / 2025-03-27
- refactor: normalize common options for all parsers
- deps:
- iconv-lite@^0.6.3
2.1.0 / 2025-02-10
- deps:
- type-is@^2.0.0
- debug@^4.4.0
- Removed destroy
- refactor: prefix built-in node module imports
- use the node require cache instead of custom caching
2.0.2 / 2024-10-31
- remove
unpipepackage and use nativeunpipe()method2.0.1 / 2024-09-10
- Restore expected behavior
extendedtofalse2.0.0 / 2024-09-10
Breaking Changes
- Node.js 18 is the minimum supported version
req.bodyis no longer always initialized to{}
- it is left
undefinedunless a body is parsed- Remove deprecated
bodyParser()combination middlewareas released, this is not the case, fixed in 2.0.1urlencodedparser now defaultsextendedtofalseurlencodedsimple parser now usesqsmodule instead ofquerystringmodule
... (truncated)
Commits
d96b63d2.2.1 (#659)b204886sec: security patch for CVE-2025-13466e20e351feat: removehistory.mdfrom being packaged on publish (#660)0d7ce71docs: switch badges from badgen.net to shields.io (#661)168afffci: also test on first supported node.js version (#646)e539a71build(deps): bump actions/setup-node from 5.0.0 to 6.0.0 (#654)9391612build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#655)57baafbbuild(deps): bump github/codeql-action from 3.30.5 to 4.31.2 (#656)a6a088ebuild(deps): bump actions/download-artifact from 5.0.0 to 6.0.0 (#657)10a114dtest: add test for urlencoded invalid defaultCharset (#643)- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by ulisesgascon, a new releaser for body-parser since your current version.
Updates express from 4.19.2 to 5.1.0
Release notes
Sourced from express's releases.
v5.1.0
What's Changed
- Update captains by
@UlisesGasconin expressjs/express#6027- build: Node.js 23.0 by
@bjohansebasin expressjs/express#6075- Add funding field (v5) by
@bjohansebasin expressjs/express#6064- ✅ add discarded middleware test by
@ctcpipin expressjs/express#5819- update homepage link http to https by
@bjohansebasin expressjs/express#5920- Improve readme by
@bjohansebasin expressjs/express#5994- Add bjohansebas as repo captain for expressjs.com by
@crandmckin expressjs/express#6058- Remove Object.setPrototypeOf polyfill by
@Phillip9587in expressjs/express#6081- fix(buffer): use node:buffer instead of safe-buffer by
@bhavya3024in expressjs/express#6071- docs: Add DCO by
@UlisesGasconin expressjs/express#6048- cleanup: remove promise support check from tests by
@Phillip9587in expressjs/express#6148- Use loop for acceptParams by
@blakeembreyin expressjs/express#6066- Improve documentation step in release process by
@bjohansebasin expressjs/express#6150- cleanup: remove unnecessary require for global Buffer by
@Phillip9587in expressjs/express#6146- cleanup: remove AsyncLocalStorage check by
@Phillip9587in expressjs/express#6147- update history.md for acceptParams change by
@jonchurchin expressjs/express#6177- docs: add
@rxmarblesto the triage team by@UlisesGasconin expressjs/express#6151- refactor: improve readability by
@sazk07in expressjs/express#6173- docs: clarify the security process in the triage role by
@bjohansebasin expressjs/express#6217- chore: replace
methodsdependency with standard library by@jonkoopsin expressjs/express#6196- Remove
utils-mergedependency - use spread syntax instead by@Phillip9587in expressjs/express#6091- fix(securite): fix vulnerabilities by
@Abdel-Monaam-Aouiniin expressjs/express#6211- refactor: prefix built-in node module imports by
@slagiewkain expressjs/express#6236- fix: remove download size badges by
@wesleytoddin expressjs/express#6266- Remove unused
depddependency by@jonkoopsin expressjs/express#6197- fix: usage of
Invalid action input 'persist-credentials'foractions/setup-node@v4inci.ymlby@hamirmahalin expressjs/express#6256- Add support for OSSF scorecard reporting by
@UlisesGasconin expressjs/express#5431- docs: add
@Phillip9587to the triage team by@bjohansebasin expressjs/express#6276- fix: added a missing semicolon in css styles in examples/auth by
@pr4j3shin expressjs/express#6297- docs: include team email in the security policy by
@UlisesGasconin expressjs/express#6278- refactor: simplify
normalizeTypesfunction by@Ayoub-Mabroukin expressjs/express#6097- ci: updated github actions ci workflow by
@Phillip9587in expressjs/express#6314- ci: fix npm install --include typo by
@Phillip9587in expressjs/express#6324- ci: updated scorecard actions by
@Phillip9587in expressjs/express#6322- build(deps): use carat notation for dependency versions by
@dpopp07in expressjs/express#6317- chore(deps): update
debugto ^4.4.0 by@Phillip9587in expressjs/express#6313- docs: retroactively note 5.0.0-beta.1 api change in history file by
@dpopp07in expressjs/express#6333- feat(deps): body-parser@^2.1.0 by
@wesleytoddin expressjs/express#6332- feat(deps): router@^2.1.0 by
@wesleytoddin expressjs/express#6331- Update repo captains by
@UlisesGasconin expressjs/express#6234- deps: upgrade nyc by
@agungjatiin expressjs/express#6122- fix (deps): update deps by
@wesleytoddin expressjs/express#6337- response: add support for ETag option in res.sendFile by
@juanarbolin expressjs/express#6073- Update multiple links to use
httpsinstead ofhttpby@Phillip9587in expressjs/express#6338- Extend res.links() to allow adding multiple links with the same rel #2729 by
@andveain expressjs/express#4885- docs: update emeritus triagers by
@UlisesGasconin expressjs/express#6345- docs: update guidance for triager nominations by
@bjohansebasin expressjs/express#6349- docs: clarify guidelines for becoming a committer by
@bjohansebasin expressjs/express#6364
... (truncated)
Changelog
Sourced from express's changelog.
5.1.0 / 2025-03-31
- Add support for
Uint8Arrayinres.send()- Add support for ETag option in
res.sendFile()- Add support for multiple links with the same rel in
res.links()- Add funding field to package.json
- perf: use loop for acceptParams
- refactor: prefix built-in node module imports
- deps: remove
setprototypeof- deps: remove
safe-buffer- deps: remove
utils-merge- deps: remove
methods- deps: remove
depd- deps:
debug@^4.4.0- deps:
body-parser@^2.2.0- deps:
router@^2.2.0- deps:
content-type@^1.0.5- deps:
finalhandler@^2.1.0- deps:
qs@^6.14.0- deps:
server-static@2.2.0- deps:
type-is@2.0.15.0.1 / 2024-10-08
- Update
cookiesemver lock to address CVE-2024-477645.0.0 / 2024-09-10
- remove:
path-is-absolutedependency - usepath.isAbsoluteinstead- breaking:
res.status()accepts only integers, and input must be greater than 99 and less than 1000
- will throw a
RangeError: Invalid status code: ${code}. Status code must be greater than 99 and less than 1000.for inputs outside this range- will throw a
TypeError: Invalid status code: ${code}. Status code must be an integer.for non integer inputs- deps: send@1.0.0
res.redirect('back')andres.location('back')is no longer a supported magic string, explicitly usereq.get('Referrer') || '/'.- change:
res.clearCookiewill ignore user providedmaxAgeandexpiresoptions- deps: cookie-signature@^1.2.1
- deps: debug@4.3.6
- deps: merge-descriptors@^2.0.0
- deps: serve-static@^2.1.0
- deps: qs@6.13.0
- deps: accepts@^2.0.0
- deps: mime-types@^3.0.0
application/javascript=>text/javascript- deps: type-is@^2.0.0
- deps: content-disposition@^1.0.0
... (truncated)
Commits
cd7d4395.1.04c4f3eafix(deps): serve-static@^2.2.0 (#6418)cb4c56efix(docs): remove@mertcanaltinfrom Triagers (#6408)7b44e1dci: use full SHAs for github action versionseb6d125deps: router@^2.2.0 (#6417)f1a2dc8deps: type-is@^2.0.1 (#6420)6b51e8edeps: body-parser@^2.2.0 (#6419)1f311c5build(deps-dev): bump cookie-session from 2.0.0 to 2.1.0 (#6399)9e97144feat(deps): finalhandler@2.1.0 (#6373)29d0980build(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1 (#6397)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Package Dependencies
express
npm
4.19.2 → 5.1.0
Major
/protected-api-access-protected-api
body-parser
npm
1.20.2 → 2.2.1
Major
/protected-api-access-protected-api
Security Advisories
cookie accepts cookie name, path, and domain with out of bounds characters
body-parser is vulnerable to denial of service when url encoding is used
Technical Details
| ID: | 11376505 |
| UUID: | 3663320651 |
| Node ID: | PR_kwDOGUn1YM61bn8u |
| Host: | GitHub |
| Repository: | Azure-Samples/ms-identity-docs-code-javascript |