Skip to content

fix(deps): update dependency zod to v3.22.3 [security]#168

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-zod-vulnerability
Open

fix(deps): update dependency zod to v3.22.3 [security]#168
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-zod-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Feb 25, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zod (source) 3.21.4 -> 3.22.3 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2023-4316

Zod version 3.22.2 allows an attacker to perform a denial of service while validating emails.


Release Notes

colinhacks/zod (zod)

v3.22.3

Compare Source

Commits:

v3.22.2

Compare Source

Commits:

v3.22.1

Compare Source

Commits:

Fix handing of this in ZodFunction schemas. The parse logic for function schemas now requires the Reflect API.

const methodObject = z.object({
  property: z.number(),
  method: z.function().args(z.string()).returns(z.number()),
});
const methodInstance = {
  property: 3,
  method: function (s: string) {
    return s.length + this.property;
  },
};
const parsed = methodObject.parse(methodInstance);
parsed.method("length=8"); // => 11 (8 length + 3 property)

v3.22.0

Compare Source

ZodReadonly

This release introduces ZodReadonly and the .readonly() method on ZodType.

Calling .readonly() on any schema returns a ZodReadonly instance that wraps the original schema. The new schema parses all inputs using the original schema, then calls Object.freeze() on the result. The inferred type is also marked as readonly.

const schema = z.object({ name: string }).readonly();
type schema = z.infer<typeof schema>;
// Readonly<{name: string}>

const result = schema.parse({ name: "fido" });
result.name = "simba"; // error

The inferred type uses TypeScript's built-in readonly types when relevant.

z.array(z.string()).readonly();
// readonly string[]

z.tuple([z.string(), z.number()]).readonly();
// readonly [string, number]

z.map(z.string(), z.date()).readonly();
// ReadonlyMap<string, Date>

z.set(z.string()).readonly();
// ReadonlySet<Promise<string>>

Commits:


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 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 this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
base-frontend ❌ Failed (Inspect) Jul 2, 2025 3:42pm

@renovate renovate Bot requested a review from mxseev as a code owner February 25, 2024 09:53
@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Feb 25, 2024
@renovate renovate Bot changed the title fix(deps): update dependency zod to v3.22.3 [security] fix(deps): update dependency zod to v3.22.3 [security] - autoclosed Apr 3, 2024
@renovate renovate Bot closed this Apr 3, 2024
@renovate renovate Bot deleted the renovate/npm-zod-vulnerability branch April 3, 2024 13:26
@renovate renovate Bot changed the title fix(deps): update dependency zod to v3.22.3 [security] - autoclosed fix(deps): update dependency zod to v3.22.3 [security] Apr 3, 2024
@renovate renovate Bot restored the renovate/npm-zod-vulnerability branch April 3, 2024 16:53
@renovate renovate Bot reopened this Apr 3, 2024
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from e0b49a4 to 9ed200a Compare April 3, 2024 16:54
@renovate renovate Bot changed the title fix(deps): update dependency zod to v3.22.3 [security] fix(deps): update dependency zod to v3.22.3 [security] - autoclosed Jun 29, 2024
@renovate renovate Bot closed this Jun 29, 2024
@renovate renovate Bot deleted the renovate/npm-zod-vulnerability branch June 29, 2024 15:46
@renovate renovate Bot changed the title fix(deps): update dependency zod to v3.22.3 [security] - autoclosed fix(deps): update dependency zod to v3.22.3 [security] Jun 29, 2024
@renovate renovate Bot restored the renovate/npm-zod-vulnerability branch June 29, 2024 18:43
@renovate renovate Bot reopened this Jun 29, 2024
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 9ed200a to cae5385 Compare June 29, 2024 18:44
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from cae5385 to 909bb57 Compare January 23, 2025 22:43
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 909bb57 to e6b16f4 Compare February 9, 2025 12:38
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from e6b16f4 to a6c3b25 Compare March 11, 2025 10:29
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from a6c3b25 to 6d968e0 Compare March 13, 2025 19:42
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 6d968e0 to cc5d32c Compare March 17, 2025 17:27
@renovate renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 92058a2 to bae31a6 Compare July 2, 2025 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant