Knotgrass is a plant used as a potion ingredient: the official Harry Potter encyclopedia lists it among the known ingredients of the Polyjuice Potion, and the Harry Potter Lexicon cites its use in the recipe Hermione Granger read out in Chamber of Secrets, Chapter 10. The Lexicon also records J.K. Rowling's stated reason for choosing it, from Pottermore: the two people involved in a Polyjuice transformation are "tied" together. The old stub's wording — that knotgrass is "common" and a "transformation aid" — was vague rather than wrong, but its suggestion of Potions Classroom use had no source behind it, and this entry now sticks to what the opened records actually say.
The official Polyjuice Potion fact file lists the potion's known ingredients as boomslang skin, knotgrass, fluxweed, lacewing flies, leeches, bicorn horn and "a bit of who you are changing into," and describes the finished potion's effect: it "allows the drinker to assume the physical appearance of another human being." The recipe is complicated, the same page says, and comes from Moste Potente Potions in the Restricted Section of the Hogwarts library. The Lexicon's knotgrass record adds the plant's own paper trail: it is one of the Polyjuice ingredients cited to Chamber of Secrets Chapter 10, and it grows in the Forest — the Lexicon quotes the later book line in which "Harry and Hermione were struggling through a patch of thick knotgrass," from Order of the Phoenix, Chapter 30.
Two interpretive notes from the Lexicon complete the picture, and this entry presents them as the Lexicon's reading rather than as story fact. First, the Lexicon suggests the Order of the Phoenix passage may hint at a magical knotgrass that actually binds or entangles people walking through it, with Rowling playing on the word "knot" in the name. Second, Rowling's stated rationale for the ingredient, recorded from Pottermore, is that she chose knotgrass for the Polyjuice Potion because the two people involved are "tied" together — the drinker and the person copied. The Lexicon's page illustration is filed under the real-world plant name Polygonum aviculare, common knotgrass, indicating the everyday plant behind the ingredient name.
Everything documented about knotgrass as an ingredient comes from the second-year Polyjuice plot of Chamber of Secrets. In Chapter 10 the trio, working from Moste Potente Potions, read out the ingredient list that includes knotgrass, and Hermione began the roughly month-long preparation in Moaning Myrtle's Bathroom; the Lexicon dates the finished brew to December 25, 1992, when Harry Potter and Ron Weasley drank it to impersonate Crabbe and Goyle. The documented theft from Snape's private stock covered the powdered Bicorn Horn and shredded Boomslang Skin, not the knotgrass, so this entry attaches no theft story to the plant.
The only other book appearance of the word is the Order of the Phoenix line quoted above, where knotgrass is scenery the characters push through, not a harvested ingredient. The official fact file lists the Polyjuice Potion's appearances as the Chamber of Secrets, Goblet of Fire and Deathly Hallows books and films plus Cursed Child, but those later uses document the potion, not this plant; no opened source names knotgrass outside the Chamber of Secrets brewing and the Forest passage.