Repository navigation
fix(deps): update dependency @effect/platform to ^0.97.2 [security] - #451
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
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.
This PR contains the following updates:
^0.96.1→^0.97.2cc @skulidropek
Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
CVE-2026-115779 / GHSA-chp3-j5qr-2vfr
More information
Details
Impact
The
name,domain, andpathfields ofmakeCookie()were validated with a regex that allows;, the attribute separator inSet-Cookieheaders. BecauseserializeCookie()writes those fields verbatim, a caller who passes untrusted input into any of them can append arbitrary attributes to the header.For example, a
domainof"legit.com; Domain=.parent.tld"serializes tosession=token; Domain=legit.com; Domain=.parent.tld. RFC 6265 §5.3 takes the last occurrence, so the injected domain wins and the cookie widens to the parent domain. The same trick setsSameSite=NoneorMax-Agewhen the caller has not set those options itself.The
valuefield is unaffected: it passes throughencodeURIComponent, which encodes;. CR and LF are rejected by the existing regex, so header splitting is not possible.Patches
Fixed in #6763 (v4) and #6765 (v3): the shared regex is split into per-field validators that reject
;, andserializeCookie()now validates before writing the header.Workarounds
Do not pass user input into
name,domain, orpath; set them from application constants.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
Effect-TS/effect (@effect/platform)
v0.97.2Compare Source
Patch Changes
#7998
2e471d9Thanks @javascript-unsafe! - Fix multipart limit failures being silently ignored.Updated dependencies [
291d5a9,7c6e1e5]:v0.97.1Compare Source
Patch Changes
#6652
e5dfd78Thanks @IMax153! - Add anextendEnvoption toCommand.envfor spawning commands with a clean environment.#6774
4b03605Thanks @tim-smart! - Reject empty,.and..keys in file-backed key-value stores.#6311
8a405fdThanks @tim-smart! - update multipasta#6756
8ee801dThanks @tim-smart! - Fix a security issue in HTML escaping for generated Scalar and Swagger API documentation.#6765
5859b37Thanks @tim-smart! - Reject invalid cookie names and cookie attribute separators in domains and paths.Updated dependencies [
7ccbd9c,ab2af6d,3cc3c6e,3d390f2,fcabf08,735d81b]:v0.97.0Compare Source
Patch Changes
fffdee0]:v0.96.3Compare Source
Patch Changes
#6244
99d5575Thanks @spokodev! - FixHttpLayerRouter.addHttpApiso two registered APIs no longer share error encoders. Previously each call's middleware was added to a shared context map and applied to every route, so a 500 response from one API was sometimes encoded against the other API's error schema. The fix scopes each API's middleware to its own endpoints (matched by method + path) and wraps each route handler directly.Updated dependencies [
307d54a,d95868a,95c7d2e,d24511f]:v0.96.2Compare Source
Patch Changes
#6273
7e00169Thanks @tim-smart! - Remove the content-length header before sending FetchHttpClient requests.Updated dependencies [
8222963]:Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.