For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rust rules

Snyk Code security rules for Rust

Code analysis support for Rust is in Early Access and is available only with Enterprise plans. To enable the feature, see Snyk Preview.

Each rule includes the following information.

Rule Name
CWEs
Security Categories

Command Injection

CWE-78

CWE Top 25, OWASP:A05:2025

Cross-site Scripting (XSS)

CWE-79

CWE Top 25, OWASP:A05:2025

Hardcoded Secret

CWE-547

OWASP:A02:2025

Inadequate Padding for Public Key Encryption

CWE-326

OWASP:A04:2025

Insecure File Permissions

CWE-732

OWASP:A01:2025

Observable Timing Discrepancy

CWE-208

None

Open Redirect

CWE-601

OWASP:A01:2025

Origin Validation Error

CWE-346, CWE-942

OWASP:A02:2025, OWASP:A07:2025, OWASP-API:API8:2023

Path Traversal

CWE-23

OWASP:A01:2025

SQL Injection

CWE-89

CWE Top 25, OWASP:A05:2025

Server-Side Request Forgery (SSRF)

CWE-918

CWE Top 25, OWASP:A01:2025, OWASP-API:API7:2023

Use of Hardcoded Passwords

CWE-259, CWE-798

OWASP:A07:2025

Use of Insufficiently Random Values

CWE-330

OWASP:A04:2025

Use of Password Hash With Insufficient Computational Effort

CWE-916

OWASP:A04:2025

Use of a Broken or Risky Cryptographic Algorithm

CWE-327

OWASP:A04:2025

XPath Injection

CWE-643

OWASP:A05:2025

Last updated

Was this helpful?