A 15-year-old male presents with intensely pruritic, erythematous papules and vesicles on his hands, especially between the fingers, shortly after working on a new project involving wood and varnish. He has no previous history of skin issues but mentions using a new type of wood treatment. What is the most likely mechanism of this reaction?