The title compound, C19H12N2O3, obtained as an intermediate in the synthesis of a pyrrole derivative, is composed of a five-membered heterocycle with substituted groups via double or triple bonds as well as single bonds, without an asymmetric carbon atom. An intramolecular O—H...O link occurs. In the crystal, O—H...N hydrogen bonds link the molecules.