The off-duty policeman was seriously hurt with injuries to his stomach, chest and arm following the incident on Wednesday evening.
A man has been charged with attempting to murder an off-duty policeman who was repeatedly stabbed in a “targeted” attack.
The officer suffered serious injuries to his stomach, chest and arm in the incident in Rayleigh, Essex on Wednesday evening.
Officers were called to a property in Church Road at around 9.10pm where they found the victim, who works for Essex Police.
A spokesman for the force said John McCartney, 39, has now been charged with attempted murder and possession of an offensive weapon.
McCartney, of Eastwood Road, Rayleigh, is due to appear at Southend Magistrates’ Court on Friday.
Despite suffering several serious injuries, the officer is now in a stable condition in hospital, Essex Police said.
Following the incident, Chief Constable BJ Harrington said: “We believe this attack was targeted and that the officer and the suspect are known to each other.
“There is no wider risk to the local community or other police officers as a result of this incident.
“Our officer is in a stable condition in hospital and we are hopeful will make a full recovery.”
Rayleigh and Wickford MP Mark Francois described the attack as “absolutely wicked”.
He said: “This is an appalling crime and my thoughts are with the officer concerned and his family.
“Mercifully, while his injuries are serious, I have been told they are no longer life-threatening.
“Nevertheless, attacking a police officer on their own doorstep is absolutely wicked.”