Treating woodworm issues
If it has been identified there is a woodworm issue and that timbers require treatment, then the most convenient way of treating infested timber (whether in furniture or in buildings) is by the application of an approved insecticide/biocide solution to all parts showing signs of infestation, as well as to the adjacent timbers.
You can (of course) potentially do this yourself. There are chemical insecticide/biocide brands that you can purchase from a DIY store. However, you will have to be extremely careful, be suitably protected before applying any chemical treatments. However, for peace of mind especially during buying or selling of a home, most professional contractors can offer you a treatment with the benefits of a long term guarantee.
If it is yourself or a professional, make sure special attention is paid to the undersides and surfaces with limited accessibility and ensure all surfaces are evenly treated. The most effective time for an application of insecticides is from early Spring to late Summer when adults emerge (prior to them starting the woodworm lifecycle again).
In some circumstances, the use of fumigation, heat or freezing techniques can be considered. These procedures must be conducted by properly trained and competent technician(s). Depending on the nature of the woodworm/wood boring beetle, additional or alternative measures of control may be required.
Where the woodworm attack is so severe that the strength of the timber is affected, it may be necessary to replace the infested parts with new timber which should be treated before use.