You must inform CIC that you received new passport.
Just write the email to your visa office and let them know that your received a new passport during your application in process.
Do not forget to put your Application number, applicant name, UCI, DoB, country of birth and current address.
Must attached your new passport scan copy.
I did the same thing and they updated my new passport on file.
Hope this helps you.