Nelinda Caballero, a 62-year-old Menlo Park resident, on Feb. 22 pleaded no contest to a felony charge of attempted murder.
She was arrested May 8 of last year after stabbing her husband multiple times with a kitchen knife while they were lying in bed that morning.
According to prosecutors, she and her husband had been married for 40 years, and Ms. Caballero was angry with her husband because of an alleged affair.
The family's adult children, who live in the home, called the police and prevented further violence.
The plea is on the condition Ms. Caballero serve seven years in state prison.
She remains in custody on $10 million bail.