I am not a pumpkin or squash grower but i have had to look after some for a friend so i would take it that most plants have the same reaction when starved of Nitrogen or Magnesium
Lack of nitrogen if all the leaves young and old have turned yellow
Lack of magnesium if the younger leaves are turning yellow between the veins.
Hope this helps