The incident occurred at Wunderlich and Minette drives and authorities are asking nearby residents to stay indoors.
Police say the gunman was dressed in all black.
The victim's injuries are not considered life threatening.
.@SCCoSheriff investigating shooting in #Cupertino at Wunderlich Dr. and Minette Dr. #mapit pic.twitter.com/PLGL83oBx2
— Lilian Kim (@liliankim7) September 8, 2015