Article complete

GitHub launches code scanner to flag security vulnerabilities

The new experimental analysis can have a higher false-positive rate relative to results from standard CodeQL analysis.

GitHub logo displayed on a grey wall, indicating the company's presence and branding.

Key takeaways

  • GitHub has introduced a machine learning-powered code scanning feature to identify security vulnerabilities before production.
  • The scanner targets common vulnerabilities like cross-site scripting and SQL injection prevalent in the JavaScript/TypeScript ecosystem.
  • Alerts for detected vulnerabilities appear in both the Security and Pull Requests tabs, marked as 'Experimental.'
  • The new analysis may yield a higher false-positive rate compared to standard CodeQL analysis, but accuracy is expected to improve.

Takeaways drafted with AI from the article text.

GitHub has launched a machine learning-powered code scanning analysis feature to remove the common security vulnerabilities before it moves to production. The scanner will detect patterns like cross-site scripting (XSS), path injection, NoSQL injection and SQL injection. The feature is now available in public beta.

"Together, these four vulnerability types account for many of the recent vulnerabilities (CVEs) in the JavaScript/TypeScript ecosystem, and improving code scanning's ability to detect such vulnerabilities early in the development process is key in helping developers write more secure code,” according to the official blog.

The new experimental analysis can have a higher false-positive rate relative to results from standard CodeQL analysis. But the results will improve over time.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.