There came to him a woman. Here is the person. Matthew and Mark say this happened in the same place; John and Luke do not. For Luke speaks of her in chapter 7:37ff., and John in 12:3ff. It is therefore the opinion of some, as it was of Origen, that there were several women. Let us speak about the first two. Jerome expressly says that the one Luke speaks about was not the sister of Lazarus, because of that woman it is said that she anointed the feet, but of this one it is said that she anointed both the feet and the head. Ambrose, commenting on Luke, says that both can be said, that she is the ...same or a different woman. If we say she is the same, we can say: even though the same woman, she was not of the same merit: but as a sinner she did not dare to touch the head, yet after gaining confidence she anointed the head. And Augustine proves that she is the same woman, because in John 11:5, before he comes to this event, he says: now Mary, the sister of Lazarus, was she that anointed the Lord with ointment, and wiped his feet with her hair. Therefore it seems that the one Luke speaks about is the same as the one who is the sister of Lazarus. Origen says that the one Luke speaks about is not the same as the one John speaks about. And this can be proved by reason of time, because that event is read as having happened before he went to Jerusalem; this one happened when he says: you know that after two days shall be the pasch. Likewise by place, because that one was in the house of Martha, according to John; but this one was in the house of Simon. Likewise by the fact that there she anoints the feet, but here the head. Fourth, because there Judas said: to what purpose is this waste? But here all the disciples said it. Augustine says that it is the same woman, and he responds to Origen's arguments. To the first he says that Matthew does not preserve the historical order, but recounts the event because Judas took occasion for sinning from this incident, when he saw the ointment poured out. As for the objection about the place, Augustine does not resolve it. However, it can be resolved thus: because this man was of great authority and had power, and the house was one of theirs, because he was a relative of hers. Otherwise how would it be true what is said, that they made him a supper there, (...) and Lazarus was one of them that were at table? There came therefore a woman, having an alabaster box of ointment. Alabaster is a kind of marble that is translucent, and windows are made from it. And from this stone certain vessels were made in which ointments were preserved, just as now they are made from ground clay, because by their own coldness they were preservative; hence alabaster, i.e., a vessel of alabaster full of ointment. And here it is said precious, elsewhere that it was of spikenard. Pistis in Greek means faithful in Latin. Hence pistici, i.e., unadulterated. Next, the effect is set forth: and poured it on his head as he was at table. But here there is a twofold question. How did Christ allow this, since it seems to pertain to wantonness? To this Augustine responds in On Christian Doctrine. It is regarded differently in an ordinary person and in a prophetic person: because in an ordinary person according to the deed, but in a prophetic person according to its meaning. In an ordinary person it would signify wantonness; in a prophetic person, something significant. The allegorical exposition: because it signifies the burial of Christ, since in ancient times bodies used to be anointed. Mark 14 says that she came beforehand to anoint his body for burial. Likewise, mystically, the ointment signifies any good work. Now this work can be done in two ways, because some work is done not for the sake of God but for the sake of natural justice, as the work of a pagan, and this is an ointment, but not a precious one. If it is done for the sake of God, then it is precious. Hence she anoints the feet when she does a good work for the benefit of her neighbor; but when it is for the glory of God, then she anoints the head. But what of the fact that John says she anointed the feet and Matthew says the head? Augustine says it was both. But what of the fact that Mark says she broke the alabaster box? Augustine says that just as it sometimes happens that someone pours in such a way that nothing remains, and afterward breaks the vessel, so she did: she both poured out and broke. Or if someone wishes to object, it can be said that first she anointed the feet, then the head.
Source: Commentary on Matthew