CIOPages

Veracode vs Sonar

Veracode and Sonar both check code for security flaws before it ships. Sonar's product line is SonarQube. This page compares them on approach, testing scope, languages, open source, deployment and AI remediation, and says which fits which situation. Each fact comes from the vendor's own pages.

Veracode states that it scans first-party source code alongside third-party or proprietary code when source is not available. Sonar states that it helps developers deliver high quality and secure software by analyzing code they write, AI-generated code, and code from third parties such as open source libraries.

Prices and other facts are as of November 6, 2026. Vendors change prices; confirm them on the vendor’s own pricing page. Independent analysis: neither project nor any vendor named here paid for or reviewed this page.

The short answer

Choose Veracode when

  • you need dynamic testing of running web applications and APIs from the same vendor as static analysis
  • some of the code you must test is third-party or has no source available
  • you want malicious packages blocked before they reach the pipeline

Choose Sonar when

  • you want one gate on every merge for maintainability and security
  • you want a published monthly price or a free tier to start
  • code and findings must stay on your own servers, including air-gapped

Products and acquisitions

Veracode announced on January 6, 2025 that it had acquired certain assets of Phylum, Inc., including its malicious package analysis, detection, and mitigation technology. Veracode announced on April 1, 2024 the acquisition of Longbow Security, a pioneer in security risk management for cloud-native environments.

Sonar states that SonarQube Server, its self-managed static analysis solution, comes in Developer, Enterprise and Data Center editions, each priced per instance, per year, based on lines of code.

How they compare

Compared on each vendor's own pages as of November 6, 2026.

Approach

Veracode

Veracode states that it scans first-party source code alongside third-party or proprietary code when source is not available. Veracode states that its detection engine can analyze raw source code without compilation, for immediate feedback.

Sonar

Sonar states that it helps developers deliver high quality and secure software by analyzing code they write, AI-generated code, and code from third parties such as open source libraries. Sonar states that quality gates decide what merges and record every check.

Veracode starts from security testing across a portfolio; Sonar starts from a merge gate that covers quality and security.

What it tests

Veracode

Veracode states that it secures web applications and APIs at scale, scanning hundreds of assets across environments, including those behind your firewall. Veracode states that its products certified for FedRAMP include static analysis, pipeline scan, eLearning, dynamic analysis, API scanning, and SCA.

Sonar

Sonar states that Advanced Security uses advanced SAST and SCA to review AI code, first-party code, and open-source dependencies. Sonar states that Advanced Security is available on SonarQube Cloud (Team plan and Enterprise) and SonarQube Server Enterprise.

Only Veracode describes dynamic testing of running applications; on Sonar, composition analysis comes with Advanced Security.

Language coverage

Veracode

Veracode states that it offers enterprise-grade coverage for 100+ languages and frameworks, including legacy, mobile, and modern cloud-native stacks.

Sonar

Sonar lists SonarQube Enterprise with 45+ languages, SSO and SCIM, portfolios, OWASP and MISRA reporting, and zero data retention and BYOK with LLMs.

Both cover common languages; check legacy and mainframe languages against each vendor's current list.

Open source and supply chain

Veracode

Veracode states that Veracode Package Firewall is engineered to proactively block vulnerabilities, malware, and policy violations before they reach development pipelines. Veracode states that Veracode Fix for SCA remediates vulnerable open-source dependencies and transitive ones.

Sonar

Sonar states that Advanced Security uses advanced SAST and SCA to review AI code, first-party code, and open-source dependencies.

Both check open source dependencies; Veracode also describes blocking packages before install.

Deployment

Veracode

Veracode announced on July 20, 2022 that the General Services Administration (GSA) had granted it a Federal Risk and Authorization Management Program (FedRAMP) authorization.

Sonar

Sonar states that SonarQube Server is self-managed inside your perimeter and runs on your infrastructure, including air-gapped. Sonar states that SonarQube Server, its self-managed static analysis solution, comes in Developer, Enterprise and Data Center editions, each priced per instance, per year, based on lines of code.

Sonar states a self-managed, air-gapped option; Veracode states a FedRAMP authorization for its service.

AI remediation

Veracode

Veracode states that Veracode Fix for SAST covers over 70% of detected flaws across 10 supported languages, with an architecture that does not retain customer code. Veracode states that Veracode Fix for SCA remediates vulnerable open-source dependencies and transitive ones.

Sonar

Sonar lists SonarQube Remediation Agent as clearing backlog at scale, with every fix verified before it reaches a developer.

Both offer AI fixes that a developer reviews; test each on findings from your own code.

Do you need both?

Some teams run a quality gate and a security testing platform side by side. Sonar states that quality gates decide what merges and record every check. Veracode states that it secures web applications and APIs at scale, scanning hundreds of assets across environments, including those behind your firewall. List the tests each team needs, then price each option against that list.

By situation

Web applications and APIs that must be tested while running

Veracode. Veracode states that it secures web applications and APIs at scale, scanning hundreds of assets across environments, including those behind your firewall.

One gate on every pull request for quality and security

Sonar. Sonar states that quality gates decide what merges and record every check.

A small team that wants a published price

Sonar. Sonar states that SonarQube plan pricing starts at $34 monthly for analysis of up to 100k LOC, and that its free tier covers private projects up to a maximum of 50k LoC.

A US federal agency that needs a FedRAMP service

Veracode. Veracode announced on July 20, 2022 that the General Services Administration (GSA) had granted it a Federal Risk and Authorization Management Program (FedRAMP) authorization.

Code that may not leave your own data center

Sonar. Sonar states that SonarQube Server is self-managed inside your perimeter and runs on your infrastructure, including air-gapped.

Quick answers

Does SonarQube do SCA?

Sonar states that Advanced Security uses advanced SAST and SCA to review AI code, first-party code, and open-source dependencies. Sonar states that Advanced Security is available on SonarQube Cloud (Team plan and Enterprise) and SonarQube Server Enterprise.

Can Veracode test code without source?

Veracode states that it scans first-party source code alongside third-party or proprietary code when source is not available.

How is SonarQube priced?

Sonar states that SonarQube plan pricing starts at $34 monthly for analysis of up to 100k LOC, and that its free tier covers private projects up to a maximum of 50k LoC. Sonar states that SonarQube Server, its self-managed static analysis solution, comes in Developer, Enterprise and Data Center editions, each priced per instance, per year, based on lines of code.

Sources

Keep reading

Buyer Guide
DevSecOps & Application Security Testing
Job 02
Govern the AI already in use

Staff already use AI tools nobody approved, and most SaaS products now ship AI features by default.

Job 03
Choose and buy technology

Every vendor now sells AI features, and each contract runs for years.