The bug
Buried treasures seem to be always generated at the (9, Y, 9) chunk coordinates. This removes a big part of the challenge of uncovering the treasure if you have the map, since you'll already know where it is when using the F3 debug screen.
Analysis (tentative)
It seems that buried treasures are hardcoded to generate in this position.
net.minecraft.world.level.ChunkPos.BuriedTreasureFeature.java (Mojang mappings, 1.18-pre6, variable renamings)
...
 private static void generatePieces(...) {
        BlockPos blockPos2 = new BlockPos(pieceGeneratorContext.chunkPos().getBlockX(9), 90, pieceGeneratorContext.chunkPos().getBlockZ(9));
        structurePiecesBuilder.addPiece(new BuriedTreasurePieces.BuriedTreasurePiece(blockPos2));
    }
...Comments 14
Can confirm; this cannot be WAI, since this completely ruins the excavation process for players with this knowledge.
This very well may be a bug, but other structures do this as well; for example, witch huts always generate on a chunk corner.
I don’t think it’s very likely for this to be a bug. As @brevort said, other structures do it too. I don’t see a reason why it shouldn’t be like that for the buried treasure.
As for “it ruins the excavation process” sure, but you still need to find the correct chunk with the map
Other structures do it, but other structures aren't affected by it the same way as buried treasure. Those other structures are big, and therefore doesn't really matter where in the chunk they spawn. Just because other structures do it doesn't justify buried treasure should do it.
If a 1 block structure that's meant to be buried underground spawns in the exact same location in a chunk each time so you don't have to dig around to find it, just dig straight down in said spot every time and hit the treasure, that's the issue. I may have worded it strangely, my point is the problem lies where you are able to know exactly where treasure is in a chunk without needing to excavate around.
And yes, the excavation process is also just as important as finding the correct chunk or island. Finding the general location is 1 thing, and excavating the chest is a whole other that is ruined. I don't see how just because you still need to find the general location justifies that the exploit to completely avoid the excavation process should be intentional. Players shouldn't be given an in game advantage by knowing more about debug mechanics. Not only are those not what chunk borders and F3 is meant for you to do, but it's also unimmersive and all around a pretty broken game mechanic.
The comments shouldn't be used as a discussion thread, so I won't make any more replies. Hopefully I addressed both of you two's points clearly and respectfully.
1. The wiki is community made, not Mojang made, and describes the game as-is, not as-should-be. Nothing about it can be used as source of Mojang's intention.
2. Don't attack other people. 
As mentioned above, the Minecraft wiki is not an official source for WAI, as it is community made. Also, please do not attack other people.
I think reduceddebuginfo should be off/true by default, but you can STILL do this even with it disabled!
 
      
       
      
       
      
      
Almost certain this is WAI, but I still created this because I didn't find this issue while searching.