hoist with one's own petard

[hoist with one's own petard] {adj. phr.} Caught in your own trapor trick.

Jack carried office gossip to the boss until he washoisted by his own petard.

(From Shakespeare; literally, blown upwith one's own bomb.)