Latest
Sonar 1 min read

Review a SonarQube Security Hotspot

Review a SonarQube Security Hotspot
Sonar · October 10, 2026

Version note: references describe SonarQube Server 2025.2 behaviour. Check your server, scanner and edition requirements. These examples were not run against a live SonarQube server.

What this guide covers

A security hotspot marks code that needs a person to check its security context. It is not automatically a confirmed vulnerability, and changing its review status does not fix the code.

Before you start

Open a hotspot in a project you understand. You need the rule explanation, the surrounding code and the relevant deployment configuration.

Step 1: Read the rule and trace the input

Identify the operation being flagged and where its input comes from. For example, a cookie setting may be safe or unsafe depending on HTTPS and proxy configuration. Do not decide from the highlighted line alone.

Step 2: Record what you checked

Use a short review record:

Sensitive operation: session cookie configuration
Input/control: application-owned configuration
Deployment assumption: HTTPS termination with verified proxy settings
Evidence: integration test and production configuration reference
Decision: fix required, with owner and tracking issue

Include the actual code or configuration reference and any test that supports your conclusion. Do not write “safe” without explaining why.

Step 3: Fix or document the result

If the code needs a change, make it and test the relevant behavior. Select the review status supported by your server and explain the decision. Track unresolved work with an owner and issue.

Step 4: Review again when assumptions change

Revisit the decision when inputs, authentication, network access or deployment settings change. A previous safe decision may no longer apply.

Check the result

Another reader should be able to understand the decision from the code, configuration and tests you recorded. Do not claim a case study or a successful security test that did not happen.

References

PB
Written by

Parul Bedi

Notes and guides by Parul Bedi.

Up next

Understand SonarQube Coverage Percentages

Sonar October 15, 2026 1 min read
Open post

Conversation

0 comments

No comments yet. Start the conversation below.

Leave a comment

Replying to a comment.
Be kind. Markdown is not supported in comments.