95% of compromised websites are PHP ones.
That's the reason why PHP will die eventually,when businesses understand while it's cheap to go online with a PHP cms, once you get hacked , it will cost you your business.
"PHP: Hypertext Preprocessor
php.net/
This site may harm your computer.
Server-side HTML embedded scripting language. It provides web developers with a full suite of tools for ..."
Google inserts the "harm" note.
OMG! Did I just defend PHP? Gotta go take my medication.
Defacement (I consider malware injection a form of defacement) isn't unique to PHP by a long shot.
PHP has too many unsecure apis accessible to beginners.
With Django for instance you have a view layer with auto escaping by default.You dont write unsecure SQL queries ,..., That makes a huge difference.