A majority of old finish lumber in the U.S. has been painted with lead based paint. Unfortunately the safest thing to do with this lumber is throw it away.
Also in many homes floorboards have been covered with asbestos containing adhesives when newer floors were laid on top.