Update dependency drizzle-orm to ^0.45.2 [SECURITY]#65
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Update dependency drizzle-orm to ^0.45.2 [SECURITY]#65renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
9cdc1dc to
8dfdead
Compare
8dfdead to
357db06
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.41.0→^0.45.2Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
CVE-2026-39356
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:
updated_atcolumn to theneon_auth.users_synctable definition.v0.44.2Compare Source
tsconfig: #4535, #4457v0.44.1Compare Source
v0.44.0Compare Source
Error handling
Starting from this version, we’ve introduced a new
DrizzleQueryErrorthat wraps all errors from database drivers and provides a set of useful information:Drizzlequery failedDrizzle
cachemoduleDrizzle sends every query straight to your database by default. There are no hidden actions, no automatic caching or invalidation - you’ll always see exactly what runs. If you want caching, you must opt in.
By default, Drizzle uses a explicit caching strategy (i.e.
global: false), so nothing is ever cached unless you ask. This prevents surprises or hidden performance traps in your application. Alternatively, you can flip on all caching (global: true) so that every select will look in cache first.Out first native integration was built together with Upstash team and let you natively use
upstashas a cache for your drizzle queriesYou can also implement your own cache, as Drizzle exposes all the necessary APIs, such as get, put, mutate, etc.
You can find full implementation details on the website
For more usage example you can check our docs
v0.43.1Compare Source
Fixes
v0.43.0Compare Source
Features
cross join(#1414)left,inner,crossjoins toPostgreSQL,MySQL,Gel,SingleStoreSingleStore's driver instancesFixes
full joinfromMySQLselect apiGelcolumns to always have explicit schema & table prefixes due to potential errors caused by lack of such prefix in subquery's selection when there's already a column bearing same name in contextPgTextBuilderInitialtypeIfNotImportedtype check fromSingleStoredriver initializertsconfigs (#2654)nowaitflag (#3554)v0.42.0Compare Source
Features
Duplicate imports removal
When importing from
drizzle-ormusing custom loaders, you may encounter issues such as:SyntaxError: The requested module 'drizzle-orm' does not provide an export named 'eq'This issue arose because there were duplicated exports in
drizzle-orm. To address this, we added a set of tests that checks every file indrizzle-ormto ensure all exports are valid. These tests will fail if any new duplicated exports appear.In this release, we’ve removed all duplicated exports, so you should no longer encounter this issue.
pgEnumandmysqlEnumnow can accept both strings and TS enumsIf you provide a TypeScript enum, all your types will be inferred as that enum - so you can insert and retrieve enum values directly. If you provide a string union, it will work as before.
Improvements
inArrayacceptReadonlyArrayas a value - thanks @Zamiell@planetscale/database's execute - thanks @ayrtonInferEnumtype - thanks @totigmIssues closed
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.