Repository navigation
fix: harden auth, logging and dependency floors against recent advisories - #2
Merged
Merged
Conversation
…ries - require @fastify/rate-limit ^11.3.0 so ranges can no longer resolve to versions affected by GHSA-24mh-2vvh-5r45 (CVE-2026-133312) - compare static API tokens in constant time - stop logging the rejected response body when response validation fails, as it can contain secrets or personal data - emit a process warning when a provided Fastify instance is older than 5.12.6, the first release without known advisories Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security hardening following a review of recent Fastify ecosystem advisories.
Changes
@fastify/rate-limitfloor to^11.3.0. The previous^11.2.2range still allowed versions affected by GHSA-24mh-2vvh-5r45 (CVE-2026-133312): a race condition in the documentedincrement: falsefailed-login flow. This library only uses the default per-request limiter, which isn't affected, but consumers who call that flow on the plugin throughapp.instancecould stay on a vulnerable version with an old lockfile.npm auditdoesn't report this advisory yet.crypto.timingSafeEqual, so response timing no longer reveals how much of the token, or its length, an attacker got right.config.fastifyis older than 5.12.6, the first release without known advisories, a process warning is emitted (codeBITFOCUSAS_API_OUTDATED_FASTIFY). A process warning is used because the Fastify logger is often disabled on custom instances.Checked and not affected
fastify^5.12.8is above every patched version, including GHSA-389g-gv7q-r4x8 (fixed in 5.12.6) and the advisories fixed in 5.12.2.@fastify/static(10.1.12, via swagger-ui),find-my-way(9.10.2),@fastify/swagger,@fastify/swagger-uiand@fastify/corsare all above their patched versions.npm auditon a fresh install reports 0 vulnerabilities.Testing
5.13.0-rc.1and 6.0.0 don't).yarn lint,yarn typecheck,yarn test(201 passed),yarn buildandyarn test:distall pass locally.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit