Carbon is an essential element for life but how much can be delivered to young planets is still an open question. The chemical characterization of planet-forming disks is a crucial step in our understanding of the diversity and habitability of exoplanets. Very low-mass stars (less than 0.2 M⊙) are interesting targets because they host a rich population of terrestrial planets. Here we present the James Webb Space Telescope detection of abundant hydrocarbons in the disk of a very low-mass star obtained as part of the Mid-InfraRed Instrument mid-INfrared Disk Survey (MINDS). In addition to very strong and broad emission from C2H2 and its 13C12CH2 isotopologue, C4H2, benzene and possibly CH4 are identified, but water, polycyclic aromatic hydrocarbons and silicate features are weak or absent. The lack of small silicate grains indicates that we can look deep down into this disk. These detections testify to an active warm hydrocarbon chemistry with a high C/O ratio larger than unity in the inner 0.1 astronomical units (AU) of this disk, perhaps due to destruction of carbonaceous grains. The exceptionally high C2H2/CO2 and C2H2/H2O column density ratios indicate that oxygen is locked up in icy pebbles and planetesimals outside the water iceline. This, in turn, will have important consequences for the composition of forming exoplanets. Highly abundant hydrocarbons in a very low-mass star’s disk are detected using the JWST. This unique chemical composition is probably due to the destruction of carbon grains, and the resulting high gaseous C/O ratio may have a profound impact on the composition of growing exoplanets.