Nuxt Contentに認証なしでサービス停止を招く脆弱性、3.15.2で修正
Summary
Nuxt Contentの3.0.0から3.15.2までに、認証なしで送られたSQLクエリが処理を長時間占有し、サービス停止を招く脆弱性が見つかりました。深刻度は高く、CVSSは7.5です。修正版の3.15.2への更新が必要です。静的に事前生成したデプロイは影響を受けません。
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.
Nuxt Contentの3.0.0から3.15.2までに、認証なしで送られたSQLクエリが処理を長時間占有し、サービス停止を招く脆弱性が見つかりました。深刻度は高く、CVSSは7.5です。修正版の3.15.2への更新が必要です。静的に事前生成したデプロイは影響を受けません。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| nuxtcontent | — | Not listed |
| npm@nuxt/content |
≥ 3.0.0, < 3.15.2→ 3.15.2 |
3.15.2 |
Original description The description as published by the source.
Nuxt Content is the file-based CMS for Nuxt applications, powered by Markdown and Vue components. From 3.0.0 until 3.15.2, the unauthenticated POST /__nuxt_content/:collection/query endpoint accepts an attacker-controlled sql field in src/runtime/api/query.post.ts and permits expensive SQLite expressions. Version 3.0.0 performed no query validation; in affected releases using assertSafeQuery in src/runtime/internal/security.ts, the reported validation gap rejects a short list of SQL command keywords in WHERE clauses but permits function calls including randomblob(), zeroblob(), hex(), and length(). The query reaches the synchronous better-sqlite3 sink in src/runtime/internal/database.server.ts, allowing a single remote request to consume substantial CPU and memory while blocking the Node.js event loop and all concurrent request handling. Fully static prerendered deployments that do not expose the server endpoint are not affected. This issue is fixed in version 3.15.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com