react-ssr-advanced-seed
react-ssr-advanced-seed copied to clipboard
fix(deps): update dependency class-validator to v0.14.0 [security]
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| class-validator | 0.9.1 -> 0.14.0 |
[!WARNING] Some dependencies could not be looked up. Check the warning logs for more information.
GitHub Vulnerability Alerts
CVE-2019-18413
In TypeStack class-validator, validate() input validation can be bypassed because certain internal attributes can be overwritten via a conflicting name. Even though there is an optional forbidUnknownValues parameter that can be used to reduce the risk of this bypass, this option is not documented and thus most developers configure input validation in the vulnerable default manner. With this vulnerability, attackers can launch SQL Injection or XSS attacks by injecting arbitrary malicious input.
The default settings for forbidUnknownValues has been changed to true in 0.14.0.
NOTE: a software maintainer agrees with the "is not documented" finding but suggests that much of the responsibility for the risk lies in a different product.
Release Notes
typestack/class-validator (class-validator)
v0.14.0
v0.13.2
NOTE: This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload. Please update as soon as possible.
Fixed
- switched to use
Array.isArrayin array checks frominstanceofoperator
Changed
libphonenumber-jspackage updated to1.9.43from1.9.7validatorpackage updated to13.5.2from13.5.2- various dev-dependencies updated
v0.13.1
Added
- optional mather function has been added to the
ArrayUniquedecorator
Fixed
- a typo was fixed in the error message generated by the
IsUUIDdecorator - calling
ValidationError.toString()doesn't result in an error whenforbidNonWhitelistedparameter was used - fixed typo in error message generated by
IsIndecorator - the
@types/validatorpackage is correctly installed inlineSourcesoption is enabled in tsconfig preventing various sourcemap errors when consuming the package
Changed
- various dev dependencies has been updated
v0.13.0
Added
- project is restructured to allow three-shaking
- added option to fail on first validation error (#620)
- two new validator option is added:
always- allows setting global default foralwaysoption for decoratorsstrictGroups- ignore decorators with at least one group, whenValidatorOptions.groupsis empty
v0.12.2
Fixed
v0.12.1
Fixed
- apply only nested validator for ValidateNested multi-dimensional array (c463be5)
v0.12.0
Fixed
- accept negative timezone in isDateString (#564) (2012d72), closes #565
- apply all decorators type PropertyDecorator (#556) (5fb36e3), closes #555
- avoiding metadataStorage from DI (#335) (b57fef4), closes #328 #261 #132
- correct registerDecorator options argument (7909ec6), closes #302
- IsNumberString accept isNumbericOptions as argument (62b993f), closes #518 #463
- optional
constraintsproperty in ValidationError (#465) (84680ad), closes #309 - pass context to ValidationError for async validations (#533) (4eb1216)
- switch isLatitude & isLongitude validators (#513) (5497179), closes #502
- switch isLatitude & isLongitude validators (#537) (c27500b)
- ValidateNested support multi-dimensional arrays (#539) (62678e1)
Changed
Added
v0.11.1
Fixed
Added
- add all option in isuuid validator (#452) (98e9382)
- add IsFirebasePushId validator (#548) (e7e2e53)
- add options for isISO8601 validator (#460) (90a6638)
v0.11.0
Fixed
- create instance of ValidationError for whitelist errors (#434) (a98f5dd), closes #325
- pass context for isDefined and custom validators (#296) (0ef898e), closes #292
Added
- add isHash validator (#445) (c454cf9)
- add isISSN validator (#450) (4bd586e)
- add isJWT validator (#444) (874861b)
- add isMACAddress validator (#449) (45b7df7)
- add support for maxDecimalPlaces on IsNumber (#381) (a4dc10e)
v0.10.2
Fixed
Added
- add isLatLong, isLatitude, isLongtitude validators (#427) (3fd15c4), closes #415
- add IsObject and IsNotEmptyObject new decorators (#334) (0a41aeb)
- support ES6 Map and Set for regular validators with each option (#430) (a055bba), closes #428
v0.10.1
Fixed
- add default message for isMilitaryTime validator (#411) (204b7df), closes #287
- add default message for isPort validator (#404) (74e568c)
- add locale parameter for isAlpha and isAlphanumeric validat… (#406) (2f4bf4e)
Added
v0.10.0
Fixed
- add correct signature for custom error message handler (249c41d)
Added
- add
IsISO31661Alpha3andIsISO31661Alpha2validators (#273) (55c57b3) - IsDecimal: implement
IsDecimalfrom validatorjs (#359) (b4c8e21) - add
isPortdecorator (#282) (36684ec) - allow validate Map/Set (#365) (f6fcdc5)
- new
ValidatePromisedecorator - resolve promise before validate (#369) (35ec04d) - replace instanceof Promise and support Promise/A+ (#310) (59eac09)
isNumberStringnow accept validator.jsIsNumericOptionsas second parameter (#262)
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 has been generated by Mend Renovate. View repository job log here.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: package-lock.json
ERR! lerna Unknown command "info"
ERR! lerna Did you mean init?
npm WARN [email protected] No repository field.
lerna notice cli v3.18.4
lerna info versioning independent
lerna notice filter excluding "__tests__"
lerna info filter [ '!__tests__' ]
lerna info Bootstrapping 27 packages
lerna info Installing external dependencies
lerna ERR! npm install --ignore-scripts --no-package-lock --ignore-scripts --no-audit --package-lock-only exited 1 in 'omega-web'
lerna ERR! npm install --ignore-scripts --no-package-lock --ignore-scripts --no-audit --package-lock-only stderr:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"4.4.2" from the root project
npm ERR! peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/icons
npm ERR! @material-ui/icons@"4.4.1" from the root project
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! react-dom@"16.8.6" from the root project
npm ERR! peer react-dom@"^16.8.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"4.4.2" from the root project
npm ERR! 1 more (@material-ui/icons)
npm ERR! 2 more (@material-ui/icons, @material-ui/styles)
npm ERR! 2 more (@material-ui/icons, @material-ui/styles)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! react-fade-in@"0.1.6" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^15.4.1" from [email protected]
npm ERR! node_modules/react-fade-in
npm ERR! react-fade-in@"0.1.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /tmp/renovate-cache/others/npm/_logs/2023-03-18T22_38_45_450Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/renovate-cache/others/npm/_logs/2023-03-18T22_38_45_450Z-debug-0.log
lerna ERR! npm install --ignore-scripts --no-package-lock --ignore-scripts --no-audit --package-lock-only exited 1 in 'omega-web'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.