That is a VERY low diameter for such a mass. It comes out at just under 100,000 g/cm
3, though, not just under a million

You can't just take a fraction of a body's mass and expect a similar fraction of its diameter to produce a similar density as the original body. Volume of the object decreases a lot with any reduction of diameter - i.e. a sphere with half the diameter of the moon has far less than half the volume, so if you cram half the mass of the moon into that space, it's going to have to be at a crazy density
