Can I fix a typo on an approved ESTA?
Only a few fields can be edited. A wrong passport number, name or birth date means a new application and a new fee.
Sometimes. CBP lets an applicant update a small set of details on an existing approval, such as the email address, the address in the United States and the itinerary. A mistake in the passport number, the name, the date of birth or the country of citizenship cannot be edited, and the fix is a new application with a new fee (CBP, ESTA FAQs).
Why the passport fields are locked
An ESTA is tied to the passport that was entered. The airline checks the passport number against the CBP record before boarding, and CBP's systems check it again on arrival. If the two do not match, the approval is of no use to the traveler. Allowing those fields to change would let one approval be moved to a different person or document, so they are fixed once submitted.
This means a one-digit error in the passport number is a real problem even when the passport is the right one. The ESTA looks valid on the approval page and fails at the check-in desk.
How to check
Look at the approval page with your application number, and compare each line with the data page of the passport: surname, given names, date of birth, passport number, passport expiry. Zero and the letter O, and one and the letter I, are the characters most often confused. It is better to check the day you receive the approval than at the airport.
What a new application involves
Apply again from the start with the correct data and pay the fee again. The second application does not cancel the first, and CBP does not refund the first for a typo. The old one lapses on its own. Answer the eligibility questions as truthfully as before, and the same facts will produce the same answer.
Applying again close to departure is where trouble starts. A second application can go to "Authorization Pending", and CBP advises applying at least 72 hours before travel (CBP, ESTA). If the flight is the next morning, the traveler may want to apply immediately and tell the airline.
If the passport is renewed
A new passport is not a typo, but the effect is the same. The ESTA stays attached to the old document, so the traveler needs a new application. There is no way to transfer it.
Who this does not apply to
A visa holder does not use ESTA. A correction to a visa, such as a misspelled name, goes through the consulate that issued it.
A word on third-party sites
Search results are full of reseller sites that offer to "correct" an ESTA for a fee. The official site is at esta.cbp.dhs.gov, and only a few fields can be edited even there. A reseller cannot unlock the fixed fields.