This error is the result of the lack of scholarship. Check the dates on those Gnostic writings. They were all written later than the deaths of their proported authors; much later than the canonical Holy Scriptures.
Next time, please, do a little homework before posting.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.