chore(deps): update dependency typeorm to v0.3.26 [security]#120
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency typeorm to v0.3.26 [security]#120renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
c46580d to
b740d0f
Compare
b740d0f to
75b13d3
Compare
75b13d3 to
8e90a66
Compare
8e90a66 to
6bab28c
Compare
6bab28c to
c790c63
Compare
c790c63 to
d39a703
Compare
d39a703 to
21d0880
Compare
21d0880 to
f3f012a
Compare
f3f012a to
d346e76
Compare
d346e76 to
e2029f9
Compare
e2029f9 to
1bc27e9
Compare
1bc27e9 to
be3d87e
Compare
be3d87e to
9a46782
Compare
9a46782 to
8253117
Compare
9e873b6 to
6c196e8
Compare
6c196e8 to
74e71f7
Compare
74e71f7 to
40d67f4
Compare
40d67f4 to
7b10450
Compare
Contributor
Author
|
7b10450 to
f598dae
Compare
f598dae to
337fe69
Compare
337fe69 to
29e0ba9
Compare
29e0ba9 to
5890a06
Compare
5890a06 to
233f2d9
Compare
233f2d9 to
2247f81
Compare
2247f81 to
509c15c
Compare
509c15c to
6d54806
Compare
6d54806 to
d674b40
Compare
d674b40 to
f7a2311
Compare
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.2.18→^0.3.260.2.37→0.3.26SQL injection in typeORM
CVE-2022-33171 / GHSA-fx4w-v43j-vc45
More information
Details
The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function is a user-controlled parsed JSON object, supplying a crafted FindOneOptions instead of an id string leads to SQL injection. NOTE: the vendor's position is that the user's application is responsible for input validation.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
TypeORM vulnerable to SQL injection via crafted request to repository.save or repository.update
CVE-2025-60542 / GHSA-q2pj-6v73-8rgj
More information
Details
Summary
SQL Injection vulnerability in TypeORM before 0.3.26 via crafted request to repository.save or repository.update due to the sqlstring call using stringifyObjects default to false.
Details
Vulnerable Code:
Intended Payload (non-malicious):
username=myusername&city=Riga&name=JavadOR
{username:\"myusername\",phone:12345,name:\"Javad\"}SQL query produced:
Malicious Payload:
username=myusername&city[name]=Riga&city[role]=adminOR
{username:\"myusername\",city:{name:\"Javad\",role:\"admin\"}}SQL query produced with Injected Column:
Above query is valid as
city=name=Javadis a boolean expression resulting incity= 1 (false). “role” column is injected and updated.Underlying issue was due to TypeORM using mysql2 without specifying a value for the stringifyObjects option. In both mysql and mysql2 this option defaults to false. This option is then passed into SQLString library as false. This results in sqlstring parsing objects in a strange way using objectToValues.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:L/SI:H/SA:L/E:PReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
typeorm/typeorm (typeorm)
v0.3.26Compare Source
Notes:
stringifyObjects: true, in order to avoid a potential security vulnerabilityin the mysql/mysql2 client libraries. You can revert to the old behavior by setting
connectionOptions.extra.stringifyObjects = false.@sap/hana-clientlibrary. The deprecatedhdb-poolis no longer necessary and can be removed. See https://typeorm.io/docs/drivers/sap/#data-source-options for the new pool options.
Bug Fixes
stringifyObjectsimplicitly (#11574) (d57fe3b)useIndexwhen cloning a QueryExpressionMap (or a QueryBuilder) (#10679) (66ee307), closes #10678 #10678Features
Performance Improvements
v0.3.25Compare Source
Bug Fixes
Features
v0.3.24Compare Source
Bug Fixes
Features
Performance Improvements
v0.3.23Compare Source
This release includes a technically breaking change (from this PR) in the behaviour of the
deleteandupdatemethods of the EntityManager and Repository APIs, when an empty object is supplied as the criteria:Empty criteria(s) are not allowed for the delete/update method.Why?
This behaviour was not documented and is considered dangerous as it can allow a badly-formed object (e.g. with an undefined id) to inadvertently delete or update the whole table.
When the intention actually was to delete or update all rows, such queries can be rewritten using the QueryBuilder API:
An alternative method for deleting all rows is to use:
Bug Fixes
aggregatemethod's generic type to its returned cursor (#10754) (56f1898)Features
Performance Improvements
v0.3.22Compare Source
Bug Fixes
Features
Reverts
v0.3.21Compare Source
Bug Fixes
reflect-metadatatopeerDependenciesand set version to"^0.1.14 || ^0.2.0"(#10779) (e7649d2)Performance Improvements
v0.3.20Compare Source
Bug Fixes
Features
Reverts
v0.3.19Compare Source
Bug Fixes
Cannot read properties of undefined (reading 'sync')caused after glob package upgradev0.3.18Compare Source
Bug Fixes
@VirtualColumn(#10432) (b53e410), closes #10431update: falsein persistence (#10250) (f8fa1fd), closes #10249date-fnsin favor ofDayJs(#10306) (cf7147f)Features
Performance Improvements
BREAKING CHANGES
See: https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/CHANGES_6.0.0.md
| null,if all columns in your embed entity are nullable. Since database queries now return embedded property as
nullif all its column values are null.v0.3.17Compare Source
Bug Fixes
v0.3.16Compare Source
Bug Fixes
trustServerCertificateoption toSqlServerConnectionOptions(#9985) (0305805), closes #8093Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.