The arrests follow a separate incident Monday where a 15-year-old girl was shot in the neck.
Nineteen-year-old Canaan Maliek Wynder, of Cedar Creek Rd., Fayetteville is being held in the Cumberland County Detention Center under a $3,000 bond on charges of felony possession of a firearm on school property and possession of drug paraphernalia.
Eighteen-year-old Tristen Gibbs, of Bladen Circle, Fayetteville was released on a $2,000 bond and is charged with felony possession of a firearm on school property.
Deputies said they became suspicious of the pair after noticing a 1993 multi-colored Honda Hatchback in a rear parking lot of the school.
Wynder, who was a passenger in the car, told officers he was dropping his girlfriend off at the school. Both Wynder and Gibbs are graduates of Cape Fear High.
Deputies said no one was in danger at the school and the campus has been secured.
According to court records, Wynder was due in court next April on a charge of felony marijuana possession.
Gibbs is due in court in February for a misdemeanor alcohol possession charge.
Neither appears to have any other criminal history.
Security has been tight at Cape Fear High following Monday's shooting.
Fifteen-year-old Catilyn Abercrombie was shot as she sat eating her lunch on campus. Eighteen-year-old Ta'Von McLaurin, and a 15-year-old, whose name is not being released because of his age, were taken into custody at their Cumberland County homes Monday night.
Sources tell ABC11 the 15-year-old is Charles Underwood Jr. of Johnston Rd.
McLaurin is charged with felony aiding and abetting. Bond was set at $250,000. Underwood will go to juvenile court where he has a hearing Thursday. He is charged with attempted first-degree murder and assault with a deadly weapon with intent to kill.