Skip to content

Conversation

@pixee-demo
Copy link

@pixee-demo pixee-demo bot commented Jun 27, 2025

Pixee Fix ID: AZHILlq-SQrhNy0YXTN_

Confidence: HIGH

Fix confidence is a rating derived from an internal benchmark and includes High, Medium, and Low confidence fixes. It comprises three weighted scores reflecting the safety, effectiveness and cleanliness of Pixee's code changes within a fix. View Details in Pixee.


✨✨✨

Remediation

This change fixes "Change this code to not construct SQL queries directly from user-controlled data." (id = roslyn.sonaranalyzer.security.cs:S3649) identified by sonar.

Details

SQL queries that are not parameterized can potentially be exploited by attackers to perform SQL injection attacks. This can enable unauthorized access to the database, resulting in sensitive data leakage or worse. To prevent this, you should always use parameterized queries when interacting with a database. This codemod fixes raw SQL queries that are not parameterized by replacing them with parameterized queries.

More reading

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant