Repository navigation
fix(deps): update dependency drizzle-orm to ^0.45.0 [security] - #1310
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
requested review from
Aayushjshah,
Himanshvarma,
devesh-juspay,
junaid-shirur,
kalpadhwaryu,
shivamashtikar and
zereraz
as code owners
April 8, 2026 09:40
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 8, 2026 17:44
e5534c7 to
bd92bca
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 8, 2026 23:37
bd92bca to
ebb0bbf
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 14, 2026 12:13
ebb0bbf to
269c6d2
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 14, 2026 12:22
269c6d2 to
ebf635e
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 14, 2026 14:29
ebf635e to
67a66cb
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 14, 2026 16:45
67a66cb to
c078fff
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 15, 2026 05:56
c078fff to
2dca57e
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
2 times, most recently
from
April 16, 2026 15:48
8019817 to
84314aa
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 16, 2026 23:38
84314aa to
b92b2d3
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 17, 2026 11:07
b92b2d3 to
d52fb5b
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
2 times, most recently
from
April 28, 2026 10:04
149e6f4 to
f770f66
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 28, 2026 10:06
f770f66 to
e830b21
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
2 times, most recently
from
April 29, 2026 11:54
f1c946d to
2cb3702
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 29, 2026 13:15
2cb3702 to
4562ad2
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 29, 2026 13:18
4562ad2 to
b64eb47
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 29, 2026 14:05
b64eb47 to
791c417
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 29, 2026 14:06
791c417 to
d79ef78
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 30, 2026 14:53
d79ef78 to
1390844
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
April 30, 2026 18:40
1390844 to
535cf72
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
2 times, most recently
from
May 5, 2026 21:52
7b1a176 to
37ee2c3
Compare
renovate
Bot
force-pushed
the
renovate/npm-drizzle-orm-vulnerability
branch
from
May 7, 2026 06:13
37ee2c3 to
952097c
Compare
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch has not been deployed
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.44.5→^0.45.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Drizzle ORM has SQL injection via improperly escaped SQL identifiers
CVE-2026-39356 / GHSA-gpj5-g38j-94v9
More information
Details
Summary
Drizzle ORM improperly escaped quoted SQL identifiers in its dialect-specific
escapeName()implementations. In affected versions, embedded identifier delimiters were not escaped before the identifier was wrapped in quotes or backticks.As a result, applications that pass attacker-controlled input to APIs that construct SQL identifiers or aliases, such as
sql.identifier(),.as(), may allow an attacker to terminate the quoted identifier and inject SQL.Affected components
The issue affects the identifier escaping logic used by the PostgreSQL, MySQL, SQLite, SingleStore, and Gel dialects.
Impact
This issue only affects applications that pass untrusted runtime input into identifier or alias construction. Common examples include dynamic sorting, dynamic report builders, and CTE or alias names derived from request parameters.
Depending on the database dialect, query context, and database permissions, successful exploitation may enable blind or direct data disclosure, schema enumeration, query manipulation, privilege escalation, or destructive operations.
Applications that use only static schema objects, or that strictly map user input through an allowlist of known column or alias names, are not affected.
Details
In affected versions,
escapeName()wrapped the identifier but did not escape the quote delimiter inside the identifier value:"was not doubled to""`was not doubled to``Because of this, crafted input containing the dialect-specific identifier delimiter could break out of the quoted identifier and be interpreted as SQL syntax.
A representative vulnerable pattern is dynamic sorting using untrusted input:
Usage example:
v0.45.2Compare Source
sql.identifier(),sql.as()escaping issues. Previously all the values passed to this functions were not properly escapedcausing a possible SQL Injection (CWE-89) vulnerability
Thanks to @EthanKim88, @0x90sh and @wgoodall01 for reaching out to us with a reproduction and suggested fix
v0.45.1Compare Source
require()(#5107)v0.45.0Compare Source
$onUpdatenot handlingSQLvalues (fixes #2388, tests implemented by L-Mario564 in #2911)pgmappers not handlingDateinstances inbun-sql:postgresqldriver responses fordate,timestamptypes (fixes #4493)Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.