Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a fix for the vulnerability in zod literal validation message #3846

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ppml38
Copy link

@ppml38 ppml38 commented Nov 12, 2024

zod literal validation was giving the actual literal value in the error message as "Invalid literal, expected ". This could be proven to be a potential vulnerability that exposes sensitive information.
For example, when literals are used for API token validation in backend, the error message will simply expose the api token in http error response or in the logs.
This could potentially add a vulnerability in users code and may cause breach.
This PR will remove literal value in error message.

…ich was exposing sensitive information in error message.
Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d4eea3b
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/6732ea68a4df5a00085cf011
😎 Deploy Preview https://deploy-preview-3846--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant