People working in prisons and in secure hospitals in the UK are at considerable risk of work-related stress, exhaustion and depression. This raises serious concerns for safety, researchers suggest.