Only the last player to curse has their maximum number of curses used.
Player A has a curse limit of two and Player B has a curse limit of one. Every time Player B casts a curse on an enemy after Player A, he replaces both curses because he reduces the limit from two to one. https://pathofexile.gamepedia.com/Curse