The answer is essentially given in the comments, so let me summarize:
It is a frequent situation that one has to cite an exercise.
It is legitimate. (Polya-Szego is cited > 1400 times according to Mathscinet)
The best thing is to cite a place where the statement is proved, but if you cannot find such a place, citing an exercise is the second best choice.
You can solve the exercise in your paper, or not solve (depending on the difficulty of the exercise and space limitations and other considerations).
And finally my own recommendation: When you refer to an exercise, solve it yourself, no matter whether you include a solution to your paper or not.
Similar considerations apply to handbooks, like Tables of Integrals, etc. They are essentially made for this purpose, but there are sometimes mistakes, not frequently.