Veracode has compared programming languages [zdnet.com] for incidence of vulnerabilities by collecting statistics on 130,000 applications they have scanned.
Programming language security: These are the worst bugs for each top language
C++ and PHP have far more high-severity security flaws than programming languages like JavaScript and Python.
Let the language wars resume.
-- hendrik