Meningitis — which in its most dangerous form is a bacterial infection that causes the protective membranes of the brain and spinal cord to be inflamed—is the most common serious condition associated with a stiff neck.