  We generalize Hansen--Strobl's definition of $H$-twisted Courant algebroid
such that the twist $H$ of the Jacobi identity is a 4-form in the kernel of the
anchor map and is closed under a naturally occurring exterior covariant
derivative. We give examples and define a cohomology.
