Subaru of America Inc. has agreed to settle a class action alleging certain vehicles have a defect that causes the hood to fly open at high speeds and crack the windshield, according to a court filing Thursday in New Jersey federal court.

In a letter to U.S. District Judge Robert Kugler, Subaru attorney Michael R. Carroll of Ballard Spahr LLP didn't spell out the terms of the settlement deal but said he was "pleased" to announce the parties were drafting and executing a written agreement and to cancel a status conference that had been set for Friday in Camden.

The October lawsuit by lead plaintiff Marion Hadley alleges that Subaru won't do anything to fix the alleged defect plaguing its 2006 Subaru B9 Tribeca, despite the fact that the National Highway Traffic Safety Administration has received 17 complaints about it. The complaint alleged the defect endangers drivers and diminishes the value of the cars.

The hood of Hadley's vehicle flew open in May 2015 while she was driving at approximately 65 mph, cracking her windshield and dislodging the rearview mirror, according to the complaint. She said she was unable to see the road because of the broken hood but managed to safely make it to the side of the road, where she was helped by passing drivers.