Familiarize yourself with the footing situation.
Disturb attic insulation to run wire.
How id do it if you put your cables to the edge where the apex of the roof meet the ceiling so you basically end up with your wireing loom at the edge of your attic then clip your cables along the ceiling joists 50mm from the plaster board then its clear of insulation and if you need to lay a floor you can but do try to avoide drilling hole through the joists as you will not meet the.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
An attic that is accessible which is defined by the nec as having a permanently installed stair or ladder in place must have protection for any cables that run across the top of the attic floor joists or within 7 feet where they run across the face of rafters or studs.
Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.
Put on safety goggles gloves and a mask to protect yourself from drywall debris and the fiberglass insulation then cut a hole in the drywall with a.
You can then splice on a new piece of wire make sure it is the same wire gauge and run the new piece from the junction box back to the fixture box.
The following links will assist you with your electrical question.
A pull down attic ladder does not count.
I was also under the impression that if wiring is in an attic space that it may need to be derated because it can get very hot up there.
If there is access above the light in an attic or kneewall space you can remove the wire from the existing fixture box and install it in a junction box.
Whenever i do attic wiring i remove the insulation and staple it to the ceiling joist.
With a flashlight examine the attic and locate the path that you will use to run the wire between the two locations.