Skip to content

chore(deps): update dependency zod to v3.22.3 [security] - #87

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

chore(deps): update dependency zod to v3.22.3 [security]#87
renovate[bot] wants to merge 1 commit into
betafrom
renovate/npm-zod-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Feb 25, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
zod (source) 3.21.4 -> 3.22.3 age 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 - "" in timezone Europe/Paris, 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.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@socket-security

socket-security Bot commented Feb 25, 2024

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@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 Dec 8, 2024
@renovate renovate Bot closed this Dec 8, 2024
@renovate
renovate Bot deleted the renovate/npm-zod-vulnerability branch December 8, 2024 18:39
@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] Dec 8, 2024
@renovate renovate Bot reopened this Dec 8, 2024
@sonarqubecloud

sonarqubecloud Bot commented Dec 8, 2024

Copy link
Copy Markdown

@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch 2 times, most recently from a99ddf1 to 21318cf Compare January 30, 2025 16:44
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 21318cf to fd5cc21 Compare February 9, 2025 15:26
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from fd5cc21 to feb3592 Compare March 3, 2025 13:54
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch 3 times, most recently from de2009c to d096129 Compare March 17, 2025 13:53
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from d096129 to 8153f9b Compare April 1, 2025 08:27
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 8153f9b to e2b7d21 Compare April 8, 2025 16:27
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from e2b7d21 to 82723a1 Compare April 24, 2025 11:30
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 82723a1 to 1794c5a Compare May 19, 2025 19:01
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch 2 times, most recently from ee3ec17 to 25ab000 Compare June 4, 2025 07:31
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 25ab000 to 12ef2ce Compare June 22, 2025 11:53
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 12ef2ce to 2f74f0f Compare July 2, 2025 20:27
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2025

Copy link
Copy Markdown

@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch 2 times, most recently from 2033040 to 86f77ec Compare August 13, 2025 12:30
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 86f77ec to ae166cd Compare August 19, 2025 11:38
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from ae166cd to dbecd6d Compare August 31, 2025 11:44
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from dbecd6d to 3f95072 Compare September 25, 2025 17:09
@renovate renovate Bot changed the title fix(deps): update dependency zod to v3.22.3 [security] chore(deps): update dependency zod to v3.22.3 [security] Sep 25, 2025
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from 3f95072 to f414698 Compare October 21, 2025 18:47
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from f414698 to ab1d36e Compare November 10, 2025 23:03
@renovate
renovate Bot force-pushed the renovate/npm-zod-vulnerability branch from ab1d36e to d43ccb6 Compare November 18, 2025 23:34
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants