Skip to content
High 7.7

Knexのenu()に脆弱性、SQLを挿入されるおそれ

CVE-2026-142190 First seen on SecPulse

Summary

Knex 3.3.0までのenu()スキーマビルダーに、列挙値の単一引用符を適切にエスケープしないSQLインジェクションの脆弱性があります。攻撃者は、PostgreSQLでDROP TABLEなどの文を実行されるおそれがあり、CVSS v3.1は7.5です。修正版の有無は公表されていないため、最新の情報を確認してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Knex 3.3.0までのenu()スキーマビルダーに、列挙値の単一引用符を適切にエスケープしないSQLインジェクションの脆弱性があります。攻撃者は、PostgreSQLでDROP TABLEなどの文を実行されるおそれがあり、CVSS v3.1は7.5です。修正版の有無は公表されていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
knexknex
≤ 3.3.0→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

Original description The description as published by the source.

Knex through 3.3.0 contains an sql injection vulnerability that allows attackers to inject SQL into DDL statements by supplying enum values containing single quotes to the enu() column method. Attackers can terminate the literal to neutralize SQLite CHECK constraints or execute stacked statements like DROP TABLE on PostgreSQL with the database connection's privileges.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details