Definitions of hang by a thread:

  • verb:   depend on a small thing or be at risk