fix: patch compressed JSON denial of service [skip ci] #6

Merged
PlasticDigits merged 1 commit from fix/body-parser-cve-2026-111181 into main 2026-11-04 05:54:08 +00:00
Owner

The listing-api dependency lock contains body-parser2.3.0, affected by CVE-2026-111181. A valid compressed JSON frame followed by corrupt trailing bytes can terminate the default JSON parser process. Update the compatible transitive dependency to body-parser2.4.0 and the required qs6.17.1 resolution; no direct dependency range or major version changes.

Add an isolated loopback regression that verifies ordinary JSON/gzip, the vendor crash condition, process survival and a subsequent health request. README records the patched-version invariant, bounded commands, live-verification limit, and correct existing rate-limit defaults.

Validation: npmci --ignore-scripts, TypeScript build, regression and git diff --check passed; npm audit --omit=dev --audit-level=high passed with0HIGH/0CRITICAL. Two remaining MODERATE findings (express-rate-limit, ip-address) remain explicit follow-up work. No production exploit probe or unrelated service restart.

Refs listing-api#5, moderate follow-up#4, and cl8y-security#21/#22. This PR excludes Renovate onboarding. Source publication is not live deployment acceptance; verify the exact existing target/revision and /health separately. Commit uses [skip ci] to avoid an autoscaler creating prohibited hosts; skipped CI is not claimed passing.

The listing-api dependency lock contains body-parser2.3.0, affected by CVE-2026-111181. A valid compressed JSON frame followed by corrupt trailing bytes can terminate the default JSON parser process. Update the compatible transitive dependency to body-parser2.4.0 and the required qs6.17.1 resolution; no direct dependency range or major version changes. Add an isolated loopback regression that verifies ordinary JSON/gzip, the vendor crash condition, process survival and a subsequent health request. README records the patched-version invariant, bounded commands, live-verification limit, and correct existing rate-limit defaults. Validation: npmci --ignore-scripts, TypeScript build, regression and git diff --check passed; npm audit --omit=dev --audit-level=high passed with0HIGH/0CRITICAL. Two remaining MODERATE findings (express-rate-limit, ip-address) remain explicit follow-up work. No production exploit probe or unrelated service restart. Refs [listing-api#5](https://git.cl8y.com/code/listing-api/issues/5), [moderate follow-up#4](https://git.cl8y.com/code/listing-api/issues/4), and cl8y-security#21/#22. This PR excludes Renovate onboarding. Source publication is not live deployment acceptance; verify the exact existing target/revision and /health separately. Commit uses [skip ci] to avoid an autoscaler creating prohibited hosts; skipped CI is not claimed passing.
Update the compatible body-parser and qs resolutions, verify the late corrupt gzip condition in an isolated child, and document the patched-version invariant. Refs cl8y-security#21 and cl8y-security#22.
Author
Owner

Independent coordinating agent reviewed and APPROVED exact source8baca71ee92b85e99c6cdd6c1a05fd2039033876: compatible body-parser/qs lock delta, README and isolated regression. Local install/build/audit-HIGH/regression checks pass;2moderate findings remain#4. Forgejo rejects native APPROVED from the authenticated PR author, so no platform approval is claimed. CI is intentionally unrun under the infrastructure cap, not passing; live deployment remains#5.

Independent coordinating agent reviewed and APPROVED exact source8baca71ee92b85e99c6cdd6c1a05fd2039033876: compatible body-parser/qs lock delta, README and isolated regression. Local install/build/audit-HIGH/regression checks pass;2moderate findings remain#4. Forgejo rejects native APPROVED from the authenticated PR author, so no platform approval is claimed. CI is intentionally unrun under the infrastructure cap, not passing; live deployment remains#5.
Author
Owner

Final source/deployment acceptance for issue5, linked security21/22:

  • Source8baca71ee92b85e99c6cdd6c1a05fd2039033876 merged at12bd23e0e5f2751abf3374292b4a7f525086e6e9; GitHub mirror main matched exactly before deployment.
  • Independent source review, clean install, TypeScript build, diff check, HIGH audit threshold and isolated vendor crash regression passed in bounded invocations. The SHA512-verified vulnerable2.3.0 fixture was rejected; restored2.4.0 passed ordinary JSON/gzip, late corrupt bytes, process survival and subsequent health. Two MODERATE findings remain explicitly tracked in#4.
  • Coordinator live acceptance06:01:36Z: exact existing Coolify applicatione7rgub55vf0fjpbs9anjp9ow deploymentx2zxq48dx9zl56reburntqmr FINISHED at patched12bd23e0; application running:healthy. Ten of ten health samples passed during the rolling deployment, then harmless live health200/tokens200/unknownsymbol404 passed.
  • Coordinator inspected72deployment log entries through safe summaries: build/rolling/health observed, no deployment_failed; no raw logs or secret values published.

The first deployment attempt s7ry reused the old pin, remained healthy and is preserved as NOT patched success. Coordinator changed only git_commit_sha532cf4→12bd via the official API and verified identity/resources/ingress unchanged. Source/merge messages use [skip ci] to preserve the infrastructure cap; CI skipped/unrun is not PASS. Historical onboarding pipeline15 failure remains retained; the real finding is now fixed and live verified. No production denial-of-service probe or unrelated service restart was used. Actual subsequent Renovate extraction remains separate in security21/22.

Final source/deployment acceptance for [issue5](https://git.cl8y.com/code/listing-api/issues/5), linked security21/22: - [x] Source8baca71ee92b85e99c6cdd6c1a05fd2039033876 merged at12bd23e0e5f2751abf3374292b4a7f525086e6e9; GitHub mirror main matched exactly before deployment. - [x] Independent source review, clean install, TypeScript build, diff check, HIGH audit threshold and isolated vendor crash regression passed in bounded invocations. The SHA512-verified vulnerable2.3.0 fixture was rejected; restored2.4.0 passed ordinary JSON/gzip, late corrupt bytes, process survival and subsequent health. Two MODERATE findings remain explicitly tracked in#4. - [x] Coordinator live acceptance06:01:36Z: exact existing Coolify applicatione7rgub55vf0fjpbs9anjp9ow deploymentx2zxq48dx9zl56reburntqmr FINISHED at patched12bd23e0; application running:healthy. Ten of ten health samples passed during the rolling deployment, then harmless live health200/tokens200/unknownsymbol404 passed. - [x] Coordinator inspected72deployment log entries through safe summaries: build/rolling/health observed, no deployment_failed; no raw logs or secret values published. The first deployment attempt s7ry reused the old pin, remained healthy and is preserved as NOT patched success. Coordinator changed only git_commit_sha532cf4→12bd via the official API and verified identity/resources/ingress unchanged. Source/merge messages use [skip ci] to preserve the infrastructure cap; CI skipped/unrun is not PASS. Historical onboarding pipeline15 failure remains retained; the real finding is now fixed and live verified. No production denial-of-service probe or unrelated service restart was used. Actual subsequent Renovate extraction remains separate in security21/22.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/listing-api!6
No description provided.