Language: Python
Label: vulnerable
CWE: CWE-521 \u2014 Weak Password Requirements
The product does not require that users should have strong passwords, which makes it easier for attackers to compromise user accounts.

Code:
    def setUp(self):
        self.data = {
            "username": "test_user",
            "password1": "password",
            "password2": "password",
            "email": "new-tester@example.com",
        }