A Cornell University student has been arrested in connection with anti-Semitic threats on the New York campus.

Two days after social media posts threatened violent harm against Jewish students at Cornell University in Ithaca, New York, federal prosecutors filed charges against a 21-year-old student.

Patrick Day Jr. allegedly posted threats to "kill or injure another person using interstate communication," which is a criminal offense.

He has not yet entered a plea and is expected to appear before a federal court in Syracuse, New York, on Wednesday. Officials say he remains in custody.

According to federal prosecutors, Day allegedly posted comments on an online discussion site on Sunday, calling for the death of Jews and stating that he was "going to shoot up" a building frequently visited by Jewish students.

In a separate post, Day allegedly threatened to stab male students, sexually assault female students, and said he would "bring a campus shooter and kill all of you, Jewish pigs," according to a statement released by the US Attorney's Office for the Northern District of New York.

Day is presumed innocent until proven guilty. If convicted, he could face up to five years in prison and a fine of up to $250,000.

"We continue to be shocked and condemn these horrifying anti-Semitic threats and believe they should be prosecuted to the fullest extent of the law," said Joel Malina, a representative of Cornell University.

"Cornell University Police will maintain enhanced campus security," he added.

The threats posted on Sunday sparked fear among the Jewish community in Ithaca and prompted a visit to the campus by New York Governor Kathy Hochul.

In her remarks on Tuesday, Hochul warned of the rise in anti-Semitism on university campuses across New York State. She cited threats at Cornell but noted that anti-Semitism has also taken root in other campuses, including the City University of New York (CUNY) in New York City.

"The problem didn't just arise a few weeks ago after the October 7 [Hamas attacks on Israel]," Hochul said. "It's growing on many campuses and is most acute at CUNY."

She said that retired state judge Jonathan Lippman will lead an investigation into CUNY's policies and procedures regarding "anti-Semitism and discrimination."

In recent weeks, violence in Israel and the Gaza Strip has led to increased tensions on campuses across the US, with major pro-Palestinian protests taking place on some campuses.

Hochul said that during some of these protests, "freedom of speech crossed the line into incitement of hatred."

Devoting much of her speech to anti-Semitism, Hochul also condemned the incitement of hatred and extremism towards Muslim and Palestinian residents of New York.

Officials say the case in Ithaca is still being investigated by the FBI's Joint Terrorism Task Force, the New York State Police, the Cornell University Police, and the Ithaca Police Department.